首页 > 其他 > 详细

背景图片的自定义

时间:2014-09-20 20:51:10      阅读:287      评论:0      收藏:0      [点我收藏+]

body:


.landing-bg {   height: 100%;   background: url(背景链接地址) no-repeat;   -webkit-background-size: cover;   -moz-background-size: cover;   -ms-background-size: cover;   -o-background-size: cover;    background-size: cover;   overflow: hidden; }



Div上定义背景图片

.s-skin-container {

position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: -10;
background-position: center 0;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
-webkit-background-size: cover;
-o-background-size: cover;
zoom: 1;

}

 

 

背景图片的自定义

原文:http://www.cnblogs.com/xinlinux/p/3983666.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!