![](/img/trans.png)
[英]Full width CSS with 2 column, fixed menu width and dynamic content width
[英]Dynamic width with fixed column
我正在嘗試創建一個寬度可調整到屏幕的頁面,右側有一個固定寬度的列。 例如:
| | |
|-------Content------|--Column--|
| | |
| | |
|---Content---|--Column--|
| | |
| | |
|-----Content----|--Column--|
| | |
http://www.reddit.com/就是一個很好的例子。 謝謝
這個博客對於抓取復雜的布局非常有用。
這本質上是reddit的作用: http : //jsfiddle.net/pxfunc/rCG84/
side div 1.)高於html中的內容,2。)設置為float:right;
,和3.)給定一個特定的寬度( width:300px
)
<div id="side"></div>
<div id="content"></div>
內容div將根據窗口大小進行調整
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.