<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>無標題文檔</title><style type="text/css">* {?? ? margin:0; padding:0;? ? font-size:20px;font-weight:bold;text-align:center;color:white;}#wrap { background:#00C; margin:0 auto; width:960px;}#header { background:#FF3300; width:100%;}#mainbody {overflow:hidden; ? ?background:#FC0;}.left {margin-right:20px; width:800px; height:200px; background:#000; float:left;}.right {width:140px;height:500px;background:#690;float:right;}#footer { background:#639; width:100%;}</style></head><body><div id="wrap">? <div id="header">頭部</div>? <div id="mainbody">mainbody? ? <div class="left">left</div>? ? <div class="right">right</div>? </div>? <div id="footer">版權部分</div></div></body></html>
1 回答
已采納

李曉健
TA貢獻1036條經驗 獲得超461個贊
這個代碼應該是沒有問題的,main-body中是不應該寫內容的,內容都應該寫在left和right中的。圖上也說清楚了,那上面的文字只是標示作用,并不是真實寫進去的。
- 1 回答
- 0 關注
- 1413 瀏覽
相關問題推薦
添加回答
舉報
0/150
提交
取消