【问题标题】:Disable Navbar toggle禁用导航栏切换
【发布时间】:2013-11-16 15:41:29
【问题描述】:

我在 jquery mobile 中像这样使用导航栏

<div data-role="footer" data-theme="a" data-position="fixed" data-tap-toggle="false"> 
    <div data-role="navbar">
        <ul>
            <li><a href="#home" data-icon="home" data-iconpos="top" style="text-decoration:none;">Home</a></li>
            <li><a onclick="#back" data-icon="arrow-l" data-iconpos="top">Back</a></li>
            <li><a onclick="#refresh" data-icon="refresh" data-iconpos="top">Refresh</a></li>
        </ul>   
    </div>
</div> 

我想禁用切换,所以我在页脚中使用 data-tap-toggle="false"。但是当我点击刷新时,它会切换:

我已经尝试将 data-tap-toggle="false" 添加到导航栏 div。但是还是不行。

【问题讨论】:

  • 刷新$.mobile.resetActivePageHeight()时尝试添加此功能。
  • @Omar:不,不工作
  • 我猜问题出在这里onclick="#refresh",你怎么刷新?

标签: jquery-mobile jquery-mobile-navbar


【解决方案1】:

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-04-07
    • 1970-01-01
    • 1970-01-01
    • 2017-08-27
    相关资源
    最近更新 更多