Re: [問題] CSS三欄式排版問題
看看這個是不是你要的寫法,HTML不用變更。
#middle {
border:1px solid #444;
overflow; auto; /*清除浮動*/
width: 900px;
}
/*三個區域都給相同的留白 10px */
#left, #content, #right { padding:10px; }
#left { background-color: #9cf; width: 120px; }
#content { background-color: #3c6; width:560px; }
#right {background-color: #99f; width:160px; }
寬度的計算:
(120+10+10) + (560+10+10) + (160+10+10) = 140+580+180 = 900px
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 122.117.202.109
討論串 (同標題文章)
完整討論串 (本文為第 2 之 4 篇):
問題
4
8