Posted in Javascript onMay 25, 2017
本文实例讲述了Bootstrap实现的标签页内容切换显示效果。分享给大家供大家参考,具体如下:
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Bootstrap 实例 - 标签页(Tab)插件</title> <link href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="external nofollow" rel="stylesheet"> <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script> <script src="http://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script> </head> <body> <ul id="myTab" class="nav nav-tabs"> <li class="active col-md-4"><a href="#dingcan" rel="external nofollow" data-toggle="tab">订餐</a></li> <li class="col-md-4"><a href="#yonghu" rel="external nofollow" data-toggle="tab">用户中心</a></li> <li class="col-md-4"><a href="#dingdan" rel="external nofollow" data-toggle="tab">订单中心</a></li> </ul> <div id="myTabContent" class="tab-content"> <div class="tab-pane fade in active" id="dingcan"> <p>订餐</p> </div> <div class="tab-pane fade" id="yonghu"> <p>用户中心</p> </div> <div class="tab-pane fade" id="dingdan"> <p>订单中心</p> </div> </div> </body> </html>
Bootstrap实现的标签页内容切换显示效果示例
- Author -
骑小猪追火车声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@