实例
<!doctype html> <html lang="zh-Hans"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> <link rel="stylesheet" href="../dist/css/bootstrap.css"> <script src="../dist/js/jquery.js"></script> <script src="../dist/js/bootstrap.js"></script> </head> <body> <div class="container"> <div class="col-md-6 col-md-offset-3"> <h3 class="text-center"> 用户登录</h3> <form class="form-horizontal"> <div class="form-group"> <label for="email" class="col-sm-2 control-label">邮箱:</label> <div class="col-sm-10"> <input type="email" class="form-control" id="email" placeholder="Email"> </div> </div> <div class="form-group"> <label for="password" class="col-sm-2 control-label">密码:</label> <div class="col-sm-10"> <input type="password" class="form-control" id="password" placeholder="Password"> </div> </div> <div class="form-group"> <div class="col-sm-offset-2 col-sm-10"> <div class="checkbox"> <label > <input type="checkbox" checked>记住密码 </label> </div> </div> </div> <div class="form-group"> <div class="col-sm-2 col-sm-offset-2"> <button type="submit" class="btn btn-primary">登录</button> </div> <div class="col-sm-2 "> <button type="submit" class="btn btn-primary">注册</button> </div> </div> </form> </div> </div> </body> </html>
运行实例 »
点击 "运行实例" 按钮查看在线实例