如何做到以下效果:网页背景图片固定切自适应浏览器高度宽度 就像这样的效果: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;} js 判断 复选框 中是否有一个被选中 这是什么状况?用xtree做树形结构遇到的奇怪问题 ajax 进度条 关于数组问题的请教大虾们 关于鼠标经过弹出说明框和单元格进度显示的问题,在ie中通过,在ns中不行,请教各位大虾!急 给点意见吧! 在线.Net编辑器,看看了拉? 散分:一句javascript在IE可以但在netscape不行,如何…… 如何用Javascript判断输入是否是日期格式 一简单问题。急! 急!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;
}