如何使用CSS隐藏背景图像?如何使用CSS隐藏背景图像?
当测试我的代码。它会显示这样
,但我想申请我的代码来显示这样
我该怎么办?
.plainmodal-close{
position: absolute;
width: 45px;
height: 45px;
right: 50%;
top: 0px;
background: url(http://www.entypo.com/images/circle-with-cross.svg) no-repeat;
background-color: red;
border-radius: 50%;
border: 3px solid green;
}
<div class="plainmodal-close"></div>
尽量不要对问题提供信息时,例如使用外部网站图像(imgur)和代码(jsfiddle)。只需使用SO提供的内置功能添加/编辑您的问题。记录在外部网站上的信息会随着时间流逝而丢失或删除。 –