Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
垃圾IE,简直就是讨厌它。好的,这就是我所做的,jsbin。 在旧版本的 IE 中,如何使菜单栏看起来更漂亮或类似,例如在 FF&Chrome 中? 我也不明白,当嵌套元素#nav ul li没有在 IE 8 及更少版本中应用时,为什么?
#nav ul li
一点解决方案,也许它会帮助你实现你正在寻找的东西:
启用在旧版 IE 中禁用的某些 HTML5 功能:
现代化
希夫
它们都可以帮助您实现结果。希望对您有所帮助,如果没有,请随时丢弃我的答案。
您应该添加 html5 shim,因为旧版 IE 不理解 HTML5 标签。您还可以将 id 移动到 ul 而不是 header 元素