你可以把图片设为背景图片,通过bakckground-size来设置大小
#center_box:before{
content:’’;
background-image:url(http://localhost/quding/photos/u14.png);
background-size:1000px 200px;
position: absolute;
width:1000px;
height:200px;
z-index: 100;
top: -110px;
}
你可以把图片设为背景图片,通过bakckground-size来设置大小
#center_box:before{
content:’’;
background-image:url(http://localhost/quding/photos/u14.png);
background-size:1000px 200px;
position: absolute;
width:1000px;
height:200px;
z-index: 100;
top: -110px;
}
本文标题:伪类before/after中的图片大小是不能设置的
本文链接:https://www.haomeiwen.com/subject/svdukqtx.html
网友评论