簡體   English   中英

移動設備中的菜單導航錯誤

[英]Menu navigation error in mobile device

我在移動顯示器的博客上遇到了一些問題可以在圖片中看到。

xxxCEKABEL UIxxx

問題:

  • 上面的導航菜單,沒有出現點擊
  • 搜索引擎附近的導航菜單不會出現也無法單擊

網站: http//cekabel.blogspot.com

資料來源: http//pastebin.com/AYJjMsL0

請點擊此鏈接並重新排列標題結構。

有關更多信息請點擊此鏈接

切換菜單onclick,單擊菜單鏈接關閉 - 但僅限於移動視圖

希望對你有幫助!!

添加到您的代碼:

jQuery('#pull').click(function(){
    jQuery('.top-menunavi > ul').toggleClass('active');
});

和CSS:

.active {
    display: block !important;
}

在此輸入圖像描述

</head>之前添加此CSS代碼

<style type="text/css">
    a.menu-slide {
        display: block !important;
    }
    .show {
       display: block !important;
    }
</style>

</body>之前添加此JavaScript代碼

<script type="text/javascript">
//<![CDATA[
    $('#pull').click(function() {
        $('.top-menunavi ul').toggleClass('show');
    });
    $('.menu-slide').click(function() {
        $('.arlina-mainmenu').toggleClass('show');
    });
//]]>
</script>

在此輸入圖像描述

在click事件上調用此函數:

jQuery('.top-menunavi > ul').toggleClass('active');

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM