如何停止IE7清除浮动,因为hasLayout [英] How to stop IE7 clearing floats because of hasLayout

查看:154
本文介绍了如何停止IE7清除浮动,因为hasLayout的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含许多浮动元素的元素。

I have a containing element with a number of floated elements in it. That containing element also has a percentage width value applied to it.

在IE7中,包含float的元素之后的内容被清除,因为宽度值赋予它hasLayout我想!)。

In IE7, content following the element containing the floats is cleared because of the width value which gives it hasLayout (I think!).

我不想让containsLayout元素,但我需要它有一个显式的宽度。有没有办法解决这个问题在IE7,有效地强制hasLayout =假。

I don't want the containing element to haveLayout, but I do need it to have an explicit width. Is there a way of working around this problem in IE7, effectively forcing hasLayout=false.

推荐答案

你可以修复一些haslayout渲染问题使用:

You can fix some haslayout rendering problems using:

* {
 zoom: 1.0;
}

祝你好运。

这篇关于如何停止IE7清除浮动,因为hasLayout的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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