我有一个绝对定位的div,包含几个子div,其中一个是相对定位的div。当我在子div上使用基于百分比的宽度时,它在IE7上折叠为0宽度,但在Firefox或Safari上没有。

如果我使用像素宽度,它可以工作。如果父元素相对位置,则子元素上的百分比宽度可以工作。

我是不是漏了什么? 除了基于像素的宽度外,是否有一个简单的解决方法? CSS规范中是否有这方面的内容?

和其他人一样,我需要在Internet Explorer 6和Internet Explorer 7上测试我的代码。现在Internet Explorer 8为开发人员提供了一些很棒的工具,我很乐意使用。我还想开始用Internet Explorer 8测试我的代码,因为它很快就会发布。

The question is: how to run Internet Explorer 6, Internet Explorer 7, and Internet Explorer 8 on the same machine. So far with Internet Explorer 6 and Internet Explorer 7 I've been using Multiple IE. But people have reported (see comments on the page linked in the previous sentence) issue with Internet Explorer 6 after installing Internet Explorer 8. Those errors are related to focus in form fields. Running Internet Explorer 7 wouldn't matter so much as Internet Explorer 8 can use the Internet Explorer 7 rendering engine, but we still need Internet Explorer 6.

如何在同一台机器上运行Internet Explorer 6、Internet Explorer 7和Internet Explorer 8 ?