问题:有一张背景图片,需要在网页上全屏铺满,屏幕过小时不露白(裁切图片),如何解决?
解答:
position: fixed;
top: 0;
left: 0;
width:100%;
height:100%;
min-width: 1000px;
z-index:-10;
zoom: 1;
background-repeat: no-repeat;
background-size: cover;
background-position: center 0;
background-image: url(../images/bg.png)