CSS 设置 HTML 背景图片自适应居中全屏

background-image: url(https://images6.alphacoders.com/404/404677.jpg);
position: fixed;
top: 0;
left: 0;    
width: 100%;
height: 100%;
min-width: 1000px;
z-index: -10;
zoom: 1;
background-color: #fff;
background-repeat: no-repeat;
background-position: center 0;
background-size: cover;
-webkit-background-size: cover;
-o-background-size: cover;

0 条评论

昵称

做第一个吃螃蟹的人,快快评论吧~