CSS高度100%在IE7 [英] CSS height 100% in IE7

查看:86
本文介绍了CSS高度100%在IE7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的网站有一个困难的布局,我现在有IE7的问题。我在这个例子中如何设置内部包装器填充外部包装器的高度?

I have a difficult layout in my website and I have a problem now with IE7. How can I in this example set the inner wrapper to fill the height of the outer wrapper?

http://jsfiddle.net/fMPNw/2/

推荐答案

您必须显式定义.wrapper的高度,在这种情况下。也就是说,如果你的top:和bottom:属性将使高度动态,你唯一的解决方案是使用JavaScript重置高度,绑定高度以更新窗口大小等。

You have to explicitly define the height of .wrapper, in that situation. That being said, if your top: and bottom: attributes are going to make the height dynamic, your only solution is resetting the height with JavaScript, binding the height to update on window resize, etc.

这篇关于CSS高度100%在IE7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆