实例
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <!-- 最新版本的 Bootstrap 核心 CSS 文件 --> <link rel="stylesheet" href="./dist/css/bootstrap.min.css" > <!-- 可选的 Bootstrap 主题文件(一般不用引入) --> <link rel="stylesheet" href="./dist/css/bootstrap-theme.min.css" > <!-- 最新的 Bootstrap 核心 JavaScript 文件 --> <script src="./jquery-3.3.1.min.js"></script> <script src="./dist/js/bootstrap.min.js"></script> <!-- 新 Bootstrap 核心 CSS 文件 --><link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> <!-- 可选的 Bootstrap 主题文件(一般不使用) --><script src="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.min.css"></script> <!-- jQuery 文件。务必在 bootstrap.min.js 之前引入 --><script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script> <!-- 最新的 Bootstrap 核心 JavaScript 文件 --><script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <div class="row"> <div class="col-md-12"> <nav class="navbar navbar-inverse"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="#">首页</a> </div> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav"> <li class="active"><a href="#">新闻</a></li> <li><a href="#">案例</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li role="separator" class="divider"></li> <li><a href="#">Separated link</a></li> <li role="separator" class="divider"></li> <li><a href="#">One more separated link</a></li> </ul> </li> </ul> <form class="navbar-form navbar-right"> <div class="form-group"> <input type="text" class="form-control" placeholder="Search"> </div> <button type="submit" class="btn btn-default">Submit</button> </form> </div><!-- /.navbar-collapse --> </div><!-- /.container-fluid --> </nav> </div> </div> </div> <div class="container"> <div class="row"> <div class="col-md-4"> <ul class="nav nav-pills nav-stacked"> <li role="presentation" class="active"><a href="#">Home</a></li> <li role="presentation"><a href="#">Profile</a></li> <li role="presentation"><a href="#">Messages</a></li> <li role="presentation"><a href="#">Messages</a></li> <li role="presentation"><a href="#">Messages</a></li> <li role="presentation"><a href="#">Messages</a></li> <li role="presentation"><a href="#">Messages</a></li> <li role="presentation"><a href="#">Messages</a></li> </ul> </div> <div class="col-md-8"> <div class="panel panel-primary"> <div class="panel-heading">Panel heading without title</div> <div class="panel-body"> <p>123*</p> <p>123*</p> <p>123*</p> <p>123*</p> <p>123*</p> <p ><img src="https://img.php.cn/upload/course/000/126/153/5aa23f0ded921649.jpg" class="img-responsive img-rounded"> </div></p> </div> <div class="panel panel-info"> <div class="panel-heading"> <h3 class="panel-title">Panel title</h3> </div> <div class="panel-body"> <p>Panel content</p> <p>Panel content</p> <p>Panel content</p> <p>Panel content</p> <p>Panel content</p> </div> </div> </div> </div> </div> <div class="container"> <div class="row"> <div class="col-md-3 col-md-offset-1"><p>底部链接</p></div> <div class="col-md-3 col-md-offset-1"><p>底部链接</p></div> <div class="col-md-3 col-md-offset-1"><p>底部链接</p></div> </div> <br> <div class="row"> <div class="col-md-12 text-center">xxxxxxxxxxxxxxxxxxxxxxxxxxxxx</div> </div> </div> </body> </html>
运行实例 »
点击 "运行实例" 按钮查看在线实例