IE 中的顶部导航栏损坏
我有一个可在主要浏览器中使用的顶部导航栏,包括 ie8 及更高版本。然而。当我将 IE8 置于兼容模式(我认为会测试 ie7 浏览器)时,它不再起作用。我可以找到任何合乎逻辑的理由来解释为什么它不会。这是网站: http://redemptionconnect.com/pages/articles#
任何人都可以帮助解决这种情况?
I have a Top nav bar working in major browsers, including ie8 and above. HOWEVER. When I put IE8 into compatibility mode ( which I thought would test for ie7 browsers) it no longer works. i can find any logical reason why it doesn't. here's the site: http://redemptionconnect.com/pages/articles#
Can anyone help with this situation?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
合乎逻辑的原因是旧版浏览器存在各种问题(不仅仅是 IE,而且通常旧版 IE 可能是一个大问题)。
IE7 不支持内联块。您将必须找出不同的解决方案。
从这里开始,也许会对你有所帮助。
http://www.brunildo.org/test/InlineBlockLayout.html
The logical reason is that older browsers have various problems (not just IE, but often times older IE can be a huge problem).
IE7 doesn't support inline-block. You're going to have to figure out a different solution.
Start here, it may help you.
http://www.brunildo.org/test/InlineBlockLayout.html
所以我想通了!我所要做的就是应用 float: left;到李元素。这在 ie7 中有效!
So I figured it out! All I had to do was apply float: left; to the li element. That worked in ie7!