對於它不工作,因爲它應該工作原因不明..固定寬度的側邊欄在響應式設計不工作爲什麼?
我使用這個代碼爲例:
<div id="wrap">
<div id="header">Header</div>
<div id="sidebar">Static LEFT sidebar</div>
<div id="content">Main content: fluid div.<br/>Width is automatically adjusted between 300px and 700px</div>
<div id="footer">Footer</div>
</div>
#wrap { margin: 0px; padding: 10px; max-width:1000px; min-width:500px; margin: 0 auto;}
#header {background: #0f0;}
#sidebar {width: 200px; float: left; height: 200px; background: #ddd;}
#content {margin-left: 210px; min-height: 100px; background: #ddd;}
#footer {clear:both; background: #0f0;}
jsfiddle example(應該是如何工作的,這是)
那裏你可以看到側邊欄完全在下面?爲什麼?
有什麼不對?
謝謝
你在代碼中最後一個div是不正確的。更改你的問題的代碼部分。 –
代碼在哪裏? jsfiddle或? – maca