<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!--移动设备优先--> <title>bootstrap</title> <!-- 最新版本的 Bootstrap 核心 CSS 文件 --> <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> <!-- 可选的 Bootstrap 主题文件(一般不用引入) --> <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous"> <script src="http://libs.baidu.com/jquery/2.0.0/jquery.js"></script> <!-- 最新的 Bootstrap 核心 JavaScript 文件 --> <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> <style> img{width: 100px;height: 100px;} </style> </head> <div class="container"> <!--选项卡 --> <ul class="nav nav-tabs"> <li><a href="#pan1" data-toggle="tab">搜索</a></li> <li><a href="#pan2" data-toggle="tab">常规</a></li> <li><a href="#pan3" data-toggle="tab">查看</a></li> </ul> <!--面板--> <div class="tab-content"> <div class="tab-pane active" id="pan1"> 搜索面板 搜索面板 搜索面板 搜索面板 搜索面板 搜索面板 搜索面板 搜索面板 </div> <div class="tab-pane" id="pan2"> 常规面板常规面板常规面板常规面板常规面板常规面板常规面板 </div> <div class="tab-pane" id="pan3"> 查看面板查看面板查看面板查看面板查看面板查看面板 </div> </div> </div> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!--移动设备优先--> <title>bootstrap</title> <!-- 最新版本的 Bootstrap 核心 CSS 文件 --> <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> <!-- 可选的 Bootstrap 主题文件(一般不用引入) --> <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous"> <script src="http://libs.baidu.com/jquery/2.0.0/jquery.js"></script> <!-- 最新的 Bootstrap 核心 JavaScript 文件 --> <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> <style> img{width: 100px;height: 100px;} </style> </head> <body> <div class="container"> <!--选项卡 --> <ul class="nav nav-pills"> <li><a href="#pan1" data-toggle="pill">搜索</a></li> <li><a href="#pan2" data-toggle="pill">常规</a></li> <li><a href="#pan3" data-toggle="pill">查看</a></li> </ul> <!--面板--> <div class="tab-content"> <div class="tab-pane active" id="pan1"> 搜索面板 搜索面板 搜索面板 搜索面板 搜索面板 搜索面板 搜索面板 搜索面板 </div> <div class="tab-pane fade in" id="pan2"> 常规面板常规面板常规面板常规面板常规面板常规面板常规面板 </div> <div class="tab-pane fade" id="pan3"> 查看面板查看面板查看面板查看面板查看面板查看面板 </div> </div> </div> </body> </html>