gpt4 book ai didi

jquery - 单击 jQuery Mobile 中的图标时在同一页面中打开菜单

转载 作者:行者123 更新时间:2023-12-01 07:21:20 24 4
gpt4 key购买 nike

enter image description here

在 LinkedIn 应用程序中,当我单击“in” 图标时,它将打开一个菜单并显示 LinkedIn 今日和最近的更新。像这些一样,它在 Jquery Mobile 中是可能的。

任何人都可以帮助我如何在 Jquery Mobile 中执行此操作。提前致谢。

最佳答案

脚本:

<script>
$('#viewMeButton').click(function() {
$('#viewMe').toggle();
});
</script>

HTML:

 <a href="#" id="viewMeButton">

<div id="viewMe">
<div class="ui-grid-c">
<div class="ui-block-a">
<img src="your path" /> or
<span>Name 1</span>
</div>
<div class="ui-block-a">
<img src="your path" /> or
<span>Name 2</span>
</div>
</div>
</div>

关于jquery - 单击 jQuery Mobile 中的图标时在同一页面中打开菜单,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13447749/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com