JQuery Mobile Tab Bar Causing Rendering Problems

前提是你 提交于 2019-12-11 13:19:15

问题


I have a JQuery Mobile Tab Bar that is not behaving as expected:

<footer data-role="footer" data-theme="a" data-position="fixed" data-tap-toggle="false">
      <nav data-role="navbar">
           <ul>
                <li><a href="#landmarks" id="LandmarksTab" data-icon="custom" class="ui-btn-active">Landmarks</a></li>
                <li><a href="#map" id="MapTab" data-icon="custom">Map</a></li>
                <li><a href="#more" id="MoreTab" data-icon="custom">More</a></li>
           </ul>
      </nav>
</footer>

When the tab bar initially loads, it looks normal, however, when navigating to "more" or "map", then the buttons no longer show an active state. Also, after navigating through pages, sometimes, the first "landmarks" page appears below the active page, if the user scrolls down.

Here is a link to the complete project: http://jakeserver.com/Apps/BostonLandmarks/B10/index.html

Is there something wrong with my tab bar?

Thanks.

来源:https://stackoverflow.com/questions/24247817/jquery-mobile-tab-bar-causing-rendering-problems

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!