IE7和IE7 IE6 CSS 错误

发布于 2024-12-07 04:56:23 字数 255 浏览 2 评论 0原文

我的网站 www.eat.vn 遇到问题。该网站在 Firefox、Chrome、IE8 和 IE8 中运行良好。 IE9 和 Safari,但在 IE6 和 IE7 中,我们的主要设计元素存在问题。

请查看附图,您就会明白选项卡上的堆叠效果不是我想要的。我试图解决这个错误,但无法找到一个不会扰乱其他浏览器中任何内容的解决方案。任何帮助将不胜感激!

IE 错误

I have a problem with our website at www.eat.vn. The site is fine in Firefox, Chrome, IE8 & IE9 and Safari, but in IE6 and IE7 we have a problem with a main design element.

Please see the attached image and you will understand that the stacking effect on the tabs is not what I wanted. I have tried to work around this bug, but can't manage to find a solution which does not mess up anything in the other browsers. Any help would be much appreciated!

IE bug

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

淡淡の花香 2024-12-14 04:56:23

我没有 IE6 或 IE7 来测试这个,所以我有点在黑暗中拍摄。

我的猜测是,问题与选项卡的容器元素有关 (

)。它的样式为 float:left;,我认为没有必要;它不需要浮动,因为它旁边没有任何其他元素。

然而这个浮动可能会导致 IE6/7 的 bug;看起来这个元素似乎已经决定它的宽度只能与其中一个选项卡一样宽,这会导致选项卡相互包裹在一起。

因此,我建议将 float:left 从此容器元素中删除,看看是否有帮助。

(当然,其中的选项卡元素仍然应该是浮动的)

I don't have IE6 or IE7 to hand to test this, so I'm shooting in the dark somewhat.

My guess is that the issue is related to the container element for the tabs (<div id="steps">). This has a style of float:left;, which I don't believe is necessary; it doesn't need to be floated since it doesn't have any other elements next to it.

However this float may be causing the IE6/7 bug; it looks as if this element has decided that it should only be as wide as one of the tabs inside it, which is then causing the tabs to wrap beneath each other.

I would therefore suggest taking the float:left away from this container element, and see if that helps.

(The tab elements inside it should still be floated, of course)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文