精慕门1023843
http://download.csdn.net/detail/joueu/8653897
慕码人2986628
你的代码可能打错了
*{padding:0; margin:0;}
html, body{ height:100%; overflow:hidden;}
#container,.sections,.section{height:100%;}
#section0,#section1,#section2,#section3{background-color:#000; background-size:cover; background-position:center; color:#FFF; text-align:center;}
#section0{ background-image:url(images/1.jpg)}
#section1{ background-image:url(images/2.jpg)}
#section2{ background-image:url(images/3.jpg)}
#section3{ background-image:url(images/4.jpg)}
<div id="container">
<div class="sections">
<div class="section" id="section0"><h3>this is pagefull</h3></div>
<div class="section" id="section1"><h3>this is pagefull</h3></div>
<div class="section" id="section2"><h3>this is pagefull</h3></div>
<div class="section" id="section3"><h3>this is pagefull</h3></div>
</div>
</div>
Yanfront
sublime text2
qq_念在天边_0
不懂就要多做 错了就要懂得找问题
最佳璇择
陌小楠
myeclipse
愿一世欢颜
转角z
sublime的插件
原野微风
sublime 没有像Dreamweaver那样代码提示功能,autocomplete应试类似这个功能的
qq_娜_13
Hello_everW
因为有些浏览器有margin各padding
谭谭谭
最快的方法是w3c上学,看看例子,最权威的学习地方。http://www.w3school.com.cn/
BangKk
oksite
DonTk
暖小心
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>页面切换</title>
<style type="text/css">
body{ font-family:Arial, Helvetica, sans-serif; margin:0; padding:0;}
html,body{ height:100%; overflow:hidden;}
#container,.section{ height:100%;}
#container{ width:400%; }
.section{ width:25%;}
#section0,#section1,#section2,#section3{ background-color:#FCC; background-size:cover; background-position:50% 50%;}
#section0{ background-image:url(images/1-2-3.png)}
#section1{ background-image:url(images/4-5-6.png)}
#section2{ background-image:url(images/1-2-3.png)}
#section3{ background-image:url(images/4-5-6.png)}
.float{ float:left;}
</style>
</head>
<body>
<div id="container">
<div class="section float" id="section0"></div>
<div class="section float" id="section1"></div>
<div class="section float" id="section2"></div>
<div class="section float" id="section3"></div>
</div>
</body>
</html>
qq_All_0
注意路径
qq蓝色星辰
上善若水_0046
看看IE有没有IE9+。
惜有
可以在程序里绑定window中的resize事件就可以了。
hastings0714
金错刀丨
图片轮播的原理,可以参照图片轮播的章节
莫寻烟雨
section的父元素是container,而container的width是400%,所以,section的width就是container父元素的25%*400%=100%,即与body同width。
无敌威威
callback
astros
web小虫儿866
liangdu
云姐
素娜陈
方糖__