实例
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link rel="stylesheet" href="../lib/dist/css/bootstrap.css"> <title>用户登录</title> </head> <body> <!--用水平表单制作一个完整用户登陆页面--> <div class="container"> <div class="row"> <div class="col-md-6 col-offset-3"> <h3 class="h3 text-center text-danger">用户登录</h3> <form class="form-horizontal"> <div class="form-group"> <label for="username" class="col-sm-2 control-label">用户名:</label> <div class="col-sm-10"> <input type="text" class="form-control" name="user" placeholder="20位以内字母和数字组合的字符串"> </div> </div> <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" name="email" placeholder="请输入邮箱"> </div> </div> <div class="form-group"> <label for="pwd" class="col-sm-2 control-label">密 码:</label> <div class="col-sm-10"> <input type="password" class="form-control" name="pwd" placeholder="不少于8位数"> </div> </div> <div class="group"> <div class="col-sm-offset-2 col-sm-10"> <div class="checkbox"> <label > <input type="checkbox">记住我 </label> </div> </div> </div> <div class="form-group"> <div class="col-sm-offset-2 col-sm-10"> <button type="submit" class="btn btn-block btn-info">登 录</button> </div> </div> </form> </div> </div> </div> </body> </html>
运行实例 »
点击 "运行实例" 按钮查看在线实例