討論串[問題] div的長度
共 6 篇文章
內容預覽:
剛剛試了一下純css的解法. http://evendesign.tw/demo/test2col.html. 這個解法應該是沒有長度的問題了. 無論主要內容或側邊內容,哪一邊比較多都沒有問題. 多reload幾次可以看到左右塞不同文字的結果. .container {. width: 750px;
(還有855個字)
內容預覽:
我是寫這樣~參考看看. CSS的部分:. div{. position:relative;. }. #container{. margin:0px auto;. width:700px;. background:#000;. }. #side{. border:1px solid #CCC;. co
(還有314個字)
內容預覽:
html跟head略過. <body>. <style>. #main {. overflow:hidden;. }. #sider {. width:30%;. background:#000;. padding-bottom:10000px;. margin-bottom:-10000px;.
(還有239個字)
內容預覽:
(中間略). 其實這個東西,真的是CSS的缺點. 這時我們也不必太強求一定要完全CSS. CSS3有幾種辦法來實現這個排版. http://www.w3.org/TR/css3-flexbox/. http://www.w3.org/TR/css3-layout/. 搭配 display: tabl
(還有379個字)