課程
/前端開發
/HTML/CSS
/網頁布局基礎
為什么我的做出來right部分是這樣
2017-01-10
源自:網頁布局基礎 3-5
正在回答
#wrap {background:#00C;margin:0 auto;width:960px;}
#header {background:#FF3300;width:100%;}
#mainbody { background:#FC0; width:100%; overflow:hidden; height:500px;}
.left {width:800px;height:200px;background:#000;float: left;}
.right {width:140px;height:500px;background:#690;float:right;}
#footer {background:#639;width:100%;}
qq_大雄BLACKIE_03832351 提問者
qq_nextsecondla_03409914 回復 qq_大雄BLACKIE_03832351 提問者
你代碼中有幾處標點符號中英文有誤,這樣的問題其實用一些IDE很容易檢查出來的,比如webstorm,我就用這個
可以貼出你的css樣式看看你是怎么寫的
舉報
讓你精通CSS中三大定位機制,徹底掌握網頁布局的相關知識
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2017-01-10
#wrap {background:#00C;margin:0 auto;width:960px;}
#header {background:#FF3300;width:100%;}
#mainbody { background:#FC0; width:100%; overflow:hidden; height:500px;}
.left {width:800px;height:200px;background:#000;float: left;}
.right {width:140px;height:500px;background:#690;float:right;}
#footer {background:#639;width:100%;}
2017-01-10
你代碼中有幾處標點符號中英文有誤,這樣的問題其實用一些IDE很容易檢查出來的,比如webstorm,我就用這個
2017-01-10
可以貼出你的css樣式看看你是怎么寫的