下拉(Superfish)菜单在 IE 中工作,在 FF / Chrome 中损坏?

发布于 2024-12-26 11:02:20 字数 245 浏览 0 评论 0原文

网站: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 技术交流群。

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

发布评论

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

评论(3

流殇 2025-01-02 11:02:20

您的

    当前位于其子级

  • 之外。
<ul>
 <li>Link</li>
  <ul><li>Child Link</li></ul> *Dropdown*

应该是:

<ul>
 <li>Link
  <ul><li>Child Link</li></ul> *Dropdown*
 </li>

Your <ul> is currently sitting outside of the <li> it should be a child of.

<ul>
 <li>Link</li>
  <ul><li>Child Link</li></ul> *Dropdown*

It should be:

<ul>
 <li>Link
  <ul><li>Child Link</li></ul> *Dropdown*
 </li>
狂之美人 2025-01-02 11:02:20

您没有在“Red Thread”菜单项下正确嵌套子菜单

<li class="newwork"><a href="newwork.html"><span>New Series</span></a></li> //li item closes here
<ul>
    <li><a href="new-gallery.html">SERIES 1</a></li>
    <li><a href="new-gallery2.html">SERIES 2</a></li>

      <!--
    <li><a href="newworkseries3-gallery.html">SERIES 3</a></li>     
    <li><a href="newworkseries4-gallery.html">SERIES 4</a></li>
       -->                                                                     
</ul>

将该子菜单包含在菜单项中,它应该可以正常工作,如下所示:

<li class="newwork"><a href="newwork.html"><span>New Series</span></a>
    <ul>
        <li><a href="new-gallery.html">SERIES 1</a></li>
        <li><a href="new-gallery2.html">SERIES 2</a></li>

          <!--
        <li><a href="newworkseries3-gallery.html">SERIES 3</a></li>     
        <li><a href="newworkseries4-gallery.html">SERIES 4</a></li>
           -->                                                                     
    </ul>
</li>

You're not properly nesting your submenu <ul> under the your "Red Thread" menu item:

<li class="newwork"><a href="newwork.html"><span>New Series</span></a></li> //li item closes here
<ul>
    <li><a href="new-gallery.html">SERIES 1</a></li>
    <li><a href="new-gallery2.html">SERIES 2</a></li>

      <!--
    <li><a href="newworkseries3-gallery.html">SERIES 3</a></li>     
    <li><a href="newworkseries4-gallery.html">SERIES 4</a></li>
       -->                                                                     
</ul>

Include that submenu inside your menu item and it should work fine, like so:

<li class="newwork"><a href="newwork.html"><span>New Series</span></a>
    <ul>
        <li><a href="new-gallery.html">SERIES 1</a></li>
        <li><a href="new-gallery2.html">SERIES 2</a></li>

          <!--
        <li><a href="newworkseries3-gallery.html">SERIES 3</a></li>     
        <li><a href="newworkseries4-gallery.html">SERIES 4</a></li>
           -->                                                                     
    </ul>
</li>
雪花飘飘的天空 2025-01-02 11:02:20

问题出在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.

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