源代码:
提交运行 »
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Bootstrap 实例 - 标签页与胶囊式标签页</title> <link rel="stylesheet" href="http://www.fmpq.com/jscss/bootstrap/bootstrap.min.css"> <script src="http://www.fmpq.com/jscss/bootstrap/jquery.min.js"></script> <script src="http://www.fmpq.com/jscss/bootstrap/bootstrap.min.js"></script> </head> <body> <div class="container"> <h2>禁用的标签页</h2> <p>.disabled 类用于设置禁用的标签页:</p> <ul class="nav nav-tabs" role="tablist"> <li class="active"><a href="#">Home</a></li> <li><a href="#">HTML</a></li> <li class="disabled"><a href="#">CSS</a></li> <li><a href="#">About</a></li> </ul> <br> <ul class="nav nav-pills" role="tablist"> <li class="active"><a href="#">Home</a></li> <li><a href="#">HTML</a></li> <li class="disabled"><a href="#">CSS</a></li> <li><a href="#">About</a></li> </ul> </div> </body> </html>
测试结果: