1.需要在360浏览器 以及IE10.0才能有这样的效果 9.0没有。
2.点击浏览器窗口的缩放级别 背景图片是不会变小的!
3.例子:http://www.mafengwo.cn/s/self_regist.html
background-image: url(http://images.mafengwo.net/images/signup/mbg2.jpg);
}
background-position: 50% 50%;
background-size: cover;
bottom: 0;
right: 0;
position: fixed;
position: absolute\9;
width: 100%\9;
height: 100%\9;
overflow: hidden;
left: 0;
top: 0;
background-image: url(http://images.mafengwo.net/images/signup/mbg2.jpg);
}
background-position: 50% 50%;
background-size: cover;
bottom: 0;
right: 0;
position: fixed;
position: absolute\9;
width: 100%\9;
height: 100%\9;
overflow: hidden;
left: 0;
top: 0;
你确定就这样了?
HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号