如何将链接列表添加到JQuery Mobile Panel? [英] How to add link list to JQuery Mobile Panel?
本文介绍了如何将链接列表添加到JQuery Mobile Panel?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试向j Query Mobile面板添加一些按钮,这些按钮会将我带到家庭div的同级视频div.我执行了以下代码,但无法正常工作.
I am trying to add some buttons to j Query Mobile panel that would take me to the video div that is the sibling of home div. I did the following codes but it won't work.
<div data-role="panel" id="mypanel" data-display="push">
<a href="#video" data-role="button">Videos</a>
<a href="#home" data-rel="close">Close</a>
</div>
<!-- HEADER -->
<!-- CONTENT-->
推荐答案
如果要滚动到活动页面中的div,则将data-ajax="false"
属性添加到锚点.
Add data-ajax="false"
attribute to anchor, if you want to scroll to a div within the active page.
<div data-role="panel">
<a href="#video" data-ajax="false">Videos</a>
</div>
这篇关于如何将链接列表添加到JQuery Mobile Panel?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文