且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

试图让3列布局工作

更新时间:2023-11-30 15:48:52

在我可以解决这个问题之前,你的CSS有问题。您依靠属性max-width。 max-width在IE中不起作用,但在现代浏览器中起作用。因此,将它设置为40em会在Firefox,Opera等中混乱。所以我们必须让你的标记在适当的浏览器中工作,然后才能解决它的IE很多问题。
Before I can work on this, you have a problem with your CSS. You are relying on the property max-width. max-width does not work in IE but does in modern browsers. Therefore, setting it to 40em messes things up in Firefox, Opera, etc. So we must get your markup working in a proper browser before we can hack it for IEs many problems.



在我开始处理之前,你的CSS有问题。您依靠属性max-width。 max-width在IE中不起作用,但在现代浏览器中起作用。因此,将它设置为40em会在Firefox,Opera等中混乱。所以我们必须让你的标记在适当的浏览器中工作,然后我们才能解决它的IE很多问题。
Before I can work on this, you have a problem with your CSS. You are relying on the property max-width. max-width does not work in IE but does in modern browsers. Therefore, setting it to 40em messes things up in Firefox, Opera, etc. So we must get your markup working in a proper browser before we can hack it for IEs many problems.



它适用于我正在测试的IE7。我必须设置一个宽度而不是最大宽度。

It works in IE7 which I was testing on. I''ll have to set a width rather than max-width I guess.


IE7落后于Web标准和错误9年。始终先在现代浏览器中进行测试。然后我们可以调整IE的怪癖。
IE7 is nine years behind web standards and buggy. Always test in a modern browser first. Then we can adjust for IEs quirks.