<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <link rel="stylesheet" href="bootstrap.min.css"> </head> <body> <form role="form" class="form-horizontal"> <div class="form-group"> <label class="col-sm-2 control-label">用户名:</label> <div class="col-sm-10"> <input type="email" class="form-control" placeholder="Email"> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label">密码:</label> <div class="col-sm-10"> <input type="password" class="form-control" placeholder="password"> </div> </div> <div class="form-group"> <div class="col-sm-2 col-sm-10 col-sm-offset-2"> <div class="checkbox"> <label> <input type="checkbox">记住密码 </label> </div> </div> </div> <div class="form-group"> <div class="col-sm-2 col-lg-10 col-sm-offset-2"> <button type="submit">登录</button> </div> </div> </form> </body> </html>