菜单链接无法正常工作

时间:2015-11-10 00:39:21

标签: javascript css wordpress hyperlink menu

菜单链接有问题。我在链接中使用#。使用CMS - Wordpress。当我点击链接mytournament我只得到twiching。其他链接效果很好。 点击此处:http://fdsfd.5gbfree.com

<nav id="site-navigation" class="main-navigation" role="navigation">
    <button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false">Primary Menu</button>
    <div class="menu-mainmenu-container">
        <ul id="primary-menu" class="menu">
            <li id="menu-item-82" class="menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-home menu-item-82">
                <a href="http://fdsfd.5gbfree.com/#home_slider">Home</a>
            </li>
            <li id="menu-item-139" class="menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-home menu-item-139">
                <a href="http://fdsfd.5gbfree.com/#mytournaments">My Tournaments</a>
            </li>
            <li id="menu-item-81" class="menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-home menu-item-81">
                <a href="http://fdsfd.5gbfree.com/#event-list">Events</a>
            </li>
            <li id="menu-item-88" class="menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-home menu-item-88">
                <a href="http://fdsfd.5gbfree.com/#gallery">Gallery</a>
            </li>
            <li id="menu-item-80" class="menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-home menu-item-80">
                <a href="http://fdsfd.5gbfree.com/#contact">Contact</a>
            </li>
        </ul>
    </div>
</nav>

1 个答案:

答案 0 :(得分:0)

原因是该链接为#mytouranments,但您尝试链接的部分为id="myt"

将链接更改为#myt并且确实有效。

enter image description here