As you know, Internet Explorer 6 does not follow CSS' "min-height" property. Luckily, we can fix this problem using the following CSS code snippet:
如您所知,Internet Explorer 6不遵循CSS的“最小高度”属性。 幸运的是,我们可以使用以下CSS代码片段解决此问题:
#container { min-height:500px; } * html #container { height:500px; }
Internet Explorer 6 is the only browser that recongizes the "* html _____" selector and thus is the only browser to read the hard-set height. Since IE6 also stretches down despite the hard-set height property, you can view IE6's idea of "height" as a min-height. The only drawback to using this code is that it's not valid CSS. Functionality first though, right?
Internet Explorer 6是唯一能够识别“ * html _____”选择器的浏览器,因此是唯一读取硬设置高度的浏览器。 尽管IE6设置了硬性设置的height属性,但由于IE6也向下拉伸,因此您可以将IE6的“高度”概念视为最小高度。 使用此代码的唯一缺点是它不是有效CSS。 功能先行吧?