实例
<!doctype html> <html lang="en"> <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 href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> </head> <body> <div class="col-md-8 col-md-offset-2"> <div class="text-center"><h3>登录</h3></div> <form class="form-horizontal"> <div class="form-group"> <label for="inputEmail" class="col-md-1 col-md-offset-2 control-label">邮箱:</label> <div class="col-md-6"> <input type="email" class="form-control" id="inputEmail" placeholder="请输入手机或邮箱账号"> </div> </div> <div class="form-group"> <label for="inputPassword" class="col-md-1 col-md-offset-2 control-label">密码:</label> <div class="col-md-6"> <input type="password" class="form-control" id="inputPassword" placeholder="请输入密码"> </div> </div> <div class="form-group"> <div class="col-md-offset-3 col-md-6"> <div class="checkbox"> <label> <input type="checkbox" checked>记住密码 </label> </div> </div> </div> <div class="form-group"> <div class="col-md-offset-3 col-md-6"> <button type="submit" class="btn btn-primary btn-lg btn-block">登录</button> </div> </div> </form> </div> </body> </html>
运行实例 »
点击 "运行实例" 按钮查看在线实例