好多同学的答案都不清除浮动
.mainbox{width:960px; background:#000; overflow: hidden;}
.leftbox{width:740px; height:300px; background:#c9f; float:left}
.rightbox{width:210px;height:300px; background:#fcf; float:right}
.mainbox{width:960px; background:#000; overflow: hidden;}
.leftbox{width:740px; height:300px; background:#c9f; float:left}
.rightbox{width:210px;height:300px; background:#fcf; float:right}
h3{font-family:"微软雅黑";font-size:20px;}
li{width:50px;height:60px;float:left;list-style:none;text-align:center;}
a:link,.lianxi a:visited{color:black;text-decoration:none;display:block;cursor:hand;}
a:hover,.lianxi a:active{color:#fff;text-decoration:none;background:#be3948;}
li{width:50px;height:60px;float:left;list-style:none;text-align:center;}
a:link,.lianxi a:visited{color:black;text-decoration:none;display:block;cursor:hand;}
a:hover,.lianxi a:active{color:#fff;text-decoration:none;background:#be3948;}
清除浮动直接解决了bug,,,好腻害。像我这样真的的小白要是没有高手的指点 ,真的要弄好久 才能解决一个问题。有时还有可能解决不了。希望大家以后可以相互提问,相互解答啊。
2016-07-14
.top_content ul{float:right;}
.top_content li{float:left;width:70px;}就可以了,文字直接换位置好怪
.top_content li{float:left;width:70px;}就可以了,文字直接换位置好怪
2016-07-14
控制台报错
Uncaught ReferenceError: myFocus is not defined(anonymous function) @ mF_YSlider.js:1 project1.html:12
Uncaught ReferenceError: mF_YSlider is not defined(anonymous function) @ project1.html:12
Uncaught ReferenceError: myFocus is not defined(anonymous function) @ mF_YSlider.js:1 project1.html:12
Uncaught ReferenceError: mF_YSlider is not defined(anonymous function) @ project1.html:12
2016-07-11