作者nosql (mingray/nosql)
看板Web_Design
標題Re: [問題] div+css滿版問題
時間Thu Aug 6 03:43:12 2009
看看是不是類似你要的結果
<html>
<body>
aa
<div style='background:#C9F'>
<div style='float:left;width:200px;background:#CCF'>
test
</div>
<div style='margin-left:200px;background:#9CF'>
test<br />
test
</div>
</div>
<div style='clear:both;'></div>
cc<br />
cc
</body>
</html>
--
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 125.229.162.47
→ nosql:類似的內容在#15csNTes有討論 可是他們忘記後面要clear:both 08/06 03:44
→ nosql:如果不clear 後面會亂掉 08/06 03:44
※ 編輯: nosql 來自: 125.229.162.47 (08/06 03:48)
→ nosql:修一下code 我的opera顯示正常ie顯示不正常 爛ie 08/06 03:48
推 arrack:我研究看看,謝謝。 08/06 03:56
推 arrack:可以了,謝謝,外框可以再加個100%的DIV 08/06 04:17
→ arrack:就不會因為內容多而跑掉了 08/06 04:17
推 arrack:不對 右邊的內容 如果有100%的表格,還是會有問題 08/06 04:21
→ nosql:ie sucks _A_ 08/06 11:10