請點擊這裏查看我的網站:http://www.budgie.richardcmpage.com/DIV設置爲height:auto不能正確顯示
爲我一個盒子(底部藍色)div樣式是不調整,將自動高度。正如你所看到的帖子比一行更長,所以我希望它可以自動調整數量。我可以看到,我已經整理了包裝/中斷功能,我只需要背後的背景,就像你現在看到它不工作一樣!
#article_box_outer {
width: 800px;
position: relative;
height: auto;
border: 1px solid #337aa4;
background: #42592c;
margin-left:auto;
margin-right:auto;
margin-bottom:40px;
margin-top:10px;
}
#article_box_inner{
width: 400px;
height: 20px;
position: absolute;
border-left: 1px solid #337aa4;
border-bottom: 1px solid #337aa4;
border-right: 1px solid #337aa4;
background: #42592c;
top: 50px;
right: 30px;
}
親愛的看到我的答案,並試圖實現你想要的佈局。 – w3uiguru 2012-03-30 16:37:33
我已將它設置爲您的CSS,但請現在看結果.. – 2012-03-30 19:32:03
我看過您的網站後閱讀您的評論遊覽CSS和HTML結構仍然是相同的。我不知道你在修改時面臨什麼問題。 – w3uiguru 2012-03-31 02:54:13