django学习入门系列之第四点《案例 后台管理样例》

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <!-- 开发版本 --> <link rel="stylesheet" href="/static/plugins/bootstrap-3.4.1-dist/css/bootstrap.css"> <!-- 生产版本(压缩版) --> <link rel="stylesheet" href="/static/plugins/bootstrap-3.4.1-dist/css/bootstrap.min.css"> <style> .frame { width: 1000px; margin: 0 auto; } .frame1 { width: 1000px; margin: 20px auto; } .frame2 { margin-left: 325px; } </style> </head> <body> <div class="frame"> <div> <nav class="navbar navbar-default"> <div class="container-fluid"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <a class="navbar-brand" href="#">后台系统</a> </div> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav"> <li><a href="#">内容1</a></li> <li><a href="#">内容2</a></li> </ul> <ul class="nav navbar-nav navbar-right"> <li><a href="#">登录</a></li> <li><a href="#">注册</a></li> </ul> </div><!-- /.navbar-collapse --> </div><!-- /.container-fluid --> </nav> </div> </div> <div class="frame1"> <div> <nav class="navbar navbar-default"> <div class="container-fluid"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <a class="navbar-brand" href="#">表单区域</a> </div> </div><!-- /.container-fluid --> </nav> </div> <div> <form class="form-inline"> <div class="form-group"> <input type="text" class="form-control" id="exampleInputName2" placeholder="Jane Doe"> </div> <div class="form-group"> <input type="email" class="form-control" id="exampleInputEmail2" placeholder="jane.doe@example.com"> </div> <button type="submit" class="btn btn-default btn-success">保存</button> </form> </div> </div> <div class="frame1"> <div> <div> <nav class="navbar navbar-default"> <div class="container-fluid"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <a class="navbar-brand" href="#">表单区域</a> </div> </div><!-- /.container-fluid --> </nav> </div> </div> <div class="bs-example" data-example-id="bordered-table"> <table class="table table-bordered"> <thead> <tr> <th>#</th> <th>First Name</th> <th>Last Name</th> <th>Username</th> </tr> </thead> <tbody> <tr> <th scope="row">1</th> <td>Mark</td> <td>Otto</td> <td> <button type="button" class="btn btn-success btn-xs">编辑</button> <button type="button" class="btn btn-danger btn-xs">删除</button> </td> </tr> <tr> <th scope="row">2</th> <td>Jacob</td> <td>Thornton</td> <td> <button type="button" class="btn btn-success btn-xs">编辑</button> <button type="button" class="btn btn-danger btn-xs">删除</button> </td> </tr> <tr> <th scope="row">3</th> <td>Larry</td> <td>the Bird</td> <td> <button type="button" class="btn btn-success btn-xs">编辑</button> <button type="button" class="btn btn-danger btn-xs">删除</button> </td> </tr> </tbody> </table> </div> <nav aria-label="..." class="frame2"> <ul class="pagination"> <li class="disabled"><a href="#" aria-label="Previous"><span aria-hidden="true">«</span></a></li> <li class="active"><a href="#">1 <span class="sr-only">(current)</span></a></li> <li><a href="#">2</a></li> <li><a href="#">3</a></li> <li><a href="#">4</a></li> <li><a href="#">5</a></li> <li><a href="#" aria-label="Next"><span aria-hidden="true">»</span></a></li> </ul> </nav> </div> </body> </html>
上一篇:基于 Vagrant 手动部署多个 Redis Server


下一篇:图——图的应用02最短路径(Dijkstra算法与Floyd算法详解)