下拉(Superfish)菜单在 IE 中工作,在 FF / Chrome 中损坏?
网站:http://soizimage.com/mrmstory.html
由于某些奇怪的原因,它在 Firefox 和 Chrome 中损坏,但在 IE 中完美运行。
我不确定这是否只是子菜单
还是其他内容?感谢帮助,谢谢!
Website: http://soizimage.com/mrmstory.html
For some strange reason it's broken in Firefox and Chrome, but works perfectly in IE.
I'm not sure if it's just the submenu <ul>
or something else?
Help is appreciated, thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您的
当前位于其子级
之外。
应该是:
Your
<ul>
is currently sitting outside of the<li>
it should be a child of.It should be:
您没有在“Red Thread”菜单项下正确嵌套子菜单
:
将该子菜单包含在菜单项中,它应该可以正常工作,如下所示:
You're not properly nesting your submenu
<ul>
under the your "Red Thread" menu item:Include that submenu inside your menu item and it should work fine, like so:
问题出在IE上。虽然它可能会显示您想要的内容,但更现代的浏览器会显示您编写的内容。
文档类型之前有“东西”。如果您在文档类型之前放置任何内容,它会将 IE 置于“怪异模式”。移除所有这些并将其放入其所属的头部或身体中。
具体来说,脚本内容(可能)应该放在头部,而锚点,我不知道确切的位置,但它应该放在正文中。
其他人也提到了清单上的事情。
The problem is IE. While it may show what you want, the more modern browsers show what you wrote.
You have "stuff" before the doctype. If you put anything before the doctype, it throws IE into 'quirks mode'. Remove all that and put it in the head or body where it belongs.
Specifically, the script stuff should (probably) go in the head while the anchor, I don't know exactly where, but it should go in the body.
And the list thing everyone else mentioned, too.