如何做到以下效果:网页背景图片固定切自适应浏览器高度宽度 就像这样的效果:http://www.chinafilm.com/ 恩 知道的请说说怎么实现的 谢谢! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <style> body {background: url("http://pic.chinafilm.com/upimg/main/images/12.jpg") no-repeat fixed ; } </style> <style>body { background: url(http://pic.chinafilm.com/upimg/main/images/12.jpg) no-repeat fixed center top; -webkit-background-size: 100% 100%; -moz-background-size: 100% 100%; -ms-background-size: 100% 100%; -o-background-size: 100% 100%; background-size: 100% 100%;}</style> 呵呵,我又找到了更好的方案。但是两套方案在IE中均不支持背景自适应大小。IE下超出则隐藏,不够则留黑。<style>body { background: #000 url(http://pic.chinafilm.com/upimg/main/images/12.jpg) no-repeat fixed center top; -webkit-background-size: 100% auto; -moz-background-size: 100% auto; -ms-background-size: 100% auto; -o-background-size: 100% auto; background-size: 100% auto;}</style> body{background-attachment:fixed}这个就是控制背景固定的样式 body { padding: 0px; margin-top: 70px; margin-right: auto; margin-left: auto; background-attachment: fixed; background-repeat: no-repeat; background-image: url(http://pic.chinafilm.com/upimg/main/images/12.jpg); background-position: center top; font-family: "宋体"; font-size: 12px; line-height: 20px; margin-bottom: 0px;} 如何修改Google地图API 的默认鼠标指针? gamil中的任务列表 JavaScript编译器 要加一个初始的背景色怎么加?下面的是鼠标移上去才变化。。 extjs用loadRecord往form装载值,在form中怎么用tpl获取 如何用javascritp实现列表框中的所有项被选种 怎么用JS返回上一个历史页面 text的value为什么不能保留呢。 请问onFocus和onClick的区别 怎么得到一个层的宽度?此层在一个表格里面。 急!JS验证失效了 1个JS未定义的错误,静待大虾
<style>
body {background: url("http://pic.chinafilm.com/upimg/main/images/12.jpg") no-repeat fixed ; }
</style>
body {
background: url(http://pic.chinafilm.com/upimg/main/images/12.jpg) no-repeat fixed center top;
-webkit-background-size: 100% 100%;
-moz-background-size: 100% 100%;
-ms-background-size: 100% 100%;
-o-background-size: 100% 100%;
background-size: 100% 100%;
}
</style>
<style>
body {
background: #000 url(http://pic.chinafilm.com/upimg/main/images/12.jpg) no-repeat fixed center top;
-webkit-background-size: 100% auto;
-moz-background-size: 100% auto;
-ms-background-size: 100% auto;
-o-background-size: 100% auto;
background-size: 100% auto;
}
</style>
padding: 0px;
margin-top: 70px;
margin-right: auto;
margin-left: auto;
background-attachment: fixed;
background-repeat: no-repeat;
background-image: url(http://pic.chinafilm.com/upimg/main/images/12.jpg);
background-position: center top;
font-family: "宋体";
font-size: 12px;
line-height: 20px;
margin-bottom: 0px;
}