示例 2 : 胶囊式标签页 示例 3 : 垂直胶囊式标签页 示例 4 : 禁用的链接
标签页
<script src="https://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script>
<link href="https://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet">
<script src="https://how2j.cn/study/js/bootstrap/3.3.6/bootstrap.min.js"></script>
<ul class="nav nav-tabs">
<li role="presentation" class="active"><a href="#">Java</a></li>
<li role="presentation"><a href="#">IOS</a></li>
<li role="presentation"><a href="#">Android</a></li>
</ul>
<script src="https://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script> <link href="https://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet"> <script src="https://how2j.cn/study/js/bootstrap/3.3.6/bootstrap.min.js"></script> <ul class="nav nav-tabs"> <li role="presentation" class="active"><a href="#">Java</a></li> <li role="presentation"><a href="#">IOS</a></li> <li role="presentation"><a href="#">Android</a></li> </ul>
胶囊式标签页
<script src="https://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script>
<link href="https://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet">
<script src="https://how2j.cn/study/js/bootstrap/3.3.6/bootstrap.min.js"></script>
<ul class="nav nav-pills">
<li role="presentation" class="active"><a href="#">Java</a></li>
<li role="presentation"><a href="#">IOS</a></li>
<li role="presentation"><a href="#">Android</a></li>
</ul>
<script src="https://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script> <link href="https://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet"> <script src="https://how2j.cn/study/js/bootstrap/3.3.6/bootstrap.min.js"></script> <ul class="nav nav-pills"> <li role="presentation" class="active"><a href="#">Java</a></li> <li role="presentation"><a href="#">IOS</a></li> <li role="presentation"><a href="#">Android</a></li> </ul>
垂直胶囊式标签页
<script src="https://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script>
<link href="https://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet">
<script src="https://how2j.cn/study/js/bootstrap/3.3.6/bootstrap.min.js"></script>
<ul class="nav nav-pills nav-stacked" style="width:100px">
<li role="presentation" class="active"><a href="#">Java</a></li>
<li role="presentation"><a href="#">IOS</a></li>
<li role="presentation"><a href="#">Android</a></li>
</ul>
<script src="https://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script> <link href="https://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet"> <script src="https://how2j.cn/study/js/bootstrap/3.3.6/bootstrap.min.js"></script> <ul class="nav nav-pills nav-stacked" style="width:100px"> <li role="presentation" class="active"><a href="#">Java</a></li> <li role="presentation"><a href="#">IOS</a></li> <li role="presentation"><a href="#">Android</a></li> </ul>
禁用的链接
<script src="https://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script>
<link href="https://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet">
<script src="https://how2j.cn/study/js/bootstrap/3.3.6/bootstrap.min.js"></script>
<ul class="nav nav-tabs">
<li role="presentation" class="active"><a href="#">Java</a></li>
<li role="presentation"><a href="#">IOS</a></li>
<li role="presentation" ><a href="#">Android</a></li>
<li role="presentation" class="disabled" ><a href="#">TokyoHot</a></li>
</ul>
<script src="https://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script> <link href="https://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet"> <script src="https://how2j.cn/study/js/bootstrap/3.3.6/bootstrap.min.js"></script> <ul class="nav nav-tabs"> <li role="presentation" class="active"><a href="#">Java</a></li> <li role="presentation"><a href="#">IOS</a></li> <li role="presentation" ><a href="#">Android</a></li> <li role="presentation" class="disabled" ><a href="#">TokyoHot</a></li> </ul>
HOW2J公众号,关注后实时获知最新的教程和优惠活动,谢谢。
问答区域
2018-06-23
第一个
2018-04-24
class=“disabled”仍然有效,可以调到目标链接
回答已经提交成功,正在审核。 请于 我的回答 处查看回答记录,谢谢
2017-07-27
没有js运行效果吗 上面的标签页真正使用怎么弄
提问之前请登陆
提问已经提交成功,正在审核。 请于 我的提问 处查看提问记录,谢谢
|