好多同學的答案都不清除浮動
.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
圖片沒有輪播效果的同學,應該是某處代碼敲錯了,好好檢查下。我的是id="picBox"錯了,應該是id:"picBox"。效果爆炸
2016-07-09