所以我建立一個網站,那就是:http://www.testeeee.cixx6.com/2 100%列+粘頁腳
我不能把site_contente,內容和側邊欄(這2內site_contente)100%高度。
基本上我希望內容和側邊欄無論如何都是100%。當content div上的內容超過100%時,我希望它滾動,我的意思是,只在內容滾動上滾動。我想要什麼
例子:
http://i.stack.imgur.com/i2rid.jpg
所以我建立一個網站,那就是:http://www.testeeee.cixx6.com/2 100%列+粘頁腳
我不能把site_contente,內容和側邊欄(這2內site_contente)100%高度。
基本上我希望內容和側邊欄無論如何都是100%。當content div上的內容超過100%時,我希望它滾動,我的意思是,只在內容滾動上滾動。我想要什麼
例子:
http://i.stack.imgur.com/i2rid.jpg
根據您提交的內容,則需要用戶的iframe。然而,你可能是指這樣的:How might I force a floating DIV to match the height of another floating DIV?
設置滾動的DIV使用的樣式屬性
overflow:scroll|auto
overflow-x: scroll|auto
overflow-y: scroll|auto
爲sizeing我想你回答
編輯¿你甚至試圖???:從問題
複製這是在對方的回答refered:
<DIV id="site_content" >
<DIV id="content" style="float : left; width :65%; height:auto;background-color:#FDD017;">
</DIV>
<DIV id="side_bar" style="float : left; width :35%;height:auto; background-color:#FDD017;">
</DIV>
</DIV>
我現在的問題不是滾動。第一,我想把側邊欄和內容都放在site_content div 100%內,所以他們下去並堅持頁腳 – 2013-04-08 21:45:35
,但那會做什麼?把div的100%? – 2013-04-08 23:36:22
嘗試之後,您會看到它的功能。 – 2013-04-08 23:37:58
似乎很複雜。如果滾動到正常位置,但唯一仍在滾動的div是內容? – 2013-04-08 21:43:21
沒有什麼需要解決的問題。 ¿西班牙語? – 2013-04-08 21:45:15