【问题标题】:minimum height problem最小高度问题
【发布时间】:2010-04-08 00:11:45
【问题描述】:

假设我有一个这样的 html 订单

<div id="header">>Header(logo, navigation menus etc)will be here, fixed height </div>

<div id="content"> Dynamic content with different length will be here.  </div>

<div id="footer"> Footer of the page here, fixed height </div>

现在您可以看到,只有内容 div 的大小会随着长度的变化而变化。即使内容的高度小于填充整个内容,我也想确保使用屏幕。 (换句话说,内容的最小高度将是屏幕(height of the screen in pixel) - ( (height of header) + (height of footer) )

现在可以看到 min-widht 可以使用,但是 IE 不支持,我该如何解决这个问题?

【问题讨论】:

    标签: javascript html css


    【解决方案1】:

    您可能想看看这个将页脚锚定到页面底部的示例:http://www.xs4all.nl/~peterned/examples/csslayout1.html

    【讨论】:

      猜你喜欢
      • 2013-11-20
      • 2014-05-31
      • 1970-01-01
      • 2012-10-24
      • 1970-01-01
      • 2011-03-11
      • 1970-01-01
      • 2015-09-27
      • 2012-05-18
      相关资源
      最近更新 更多