Jquery 选项卡导航无法正常工作
这是代码:
<!DOCTYPE html>
<html>
<body>
<div data-role="tabs">
<div data-role="navbar">
<ul>
<li><a href="#tabone" >one</a></li>
<li><a href="#tabtwo">two</a></li>
</ul>
</div>
<div id="tabone" class="ui-content">
<h1>First tab contents</h1>
<a href="index.html" style="text-decoration: none"><button class="ui-btn ui-icon-arrow-l ui-btn-icon-left">Go back to page 1</button>
</a>
</div>
<div id="tabtwo" class="ui-content">
<h1>Second tab contents</h1>
</div>
</div>
</body>
我不确定它出了什么问题,我尝试了几种不同的方式来安排它,但结果如下图所示。任何帮助将不胜感激!
Here is the code:
<!DOCTYPE html>
<html>
<body>
<div data-role="tabs">
<div data-role="navbar">
<ul>
<li><a href="#tabone" >one</a></li>
<li><a href="#tabtwo">two</a></li>
</ul>
</div>
<div id="tabone" class="ui-content">
<h1>First tab contents</h1>
<a href="index.html" style="text-decoration: none"><button class="ui-btn ui-icon-arrow-l ui-btn-icon-left">Go back to page 1</button>
</a>
</div>
<div id="tabtwo" class="ui-content">
<h1>Second tab contents</h1>
</div>
</div>
</body>
I'm not sure what's going wrong with it, I've tried a couple different ways of arranging it but it just comes out like the image below. Any help would be greatly appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请考虑以下基于演示的示例: https://jqueryui.com/tabs/
Consider the following example based on the Demo: https://jqueryui.com/tabs/