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.
我的网站上有一个 Megamenu,它适用于除 Google Chrome 之外的所有浏览器。它只是没有出现。
请在 Firefox 上查看主页上的标题,然后在 Google Chrome 中查看。
网站_
您会在 Chrome 中看到,菜单不存在,但在 Firefox 中存在。
你能明白为什么会这样吗?
干杯
将您的更改position:fixed为position:relativeon<div id="megamenu"></div>并显示。
position:fixed
position:relative
<div id="megamenu"></div>
看起来你的 CSS 为它周围的元素扔掉了它,所以这个小修复可能不会让两个浏览器中的所有东西看起来都一样。