"Full Page Log In With Background"
Bootstrap 3.1.0 Snippet by wuxincheng

<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <div class="col-md-4 col-md-offset-7"> <div class="panel panel-default"> <div class="panel-heading"> <span class="glyphicon glyphicon-lock"></span> 用户登录</div> <div class="panel-body"> <form class="form-horizontal" role="form"> <div class="form-group"> <label for="inputEmail3" class="col-sm-3 control-label"> 邮箱</label> <div class="col-sm-9"> <input type="email" class="form-control" id="inputEmail3" placeholder="请输入您的邮箱" required> </div> </div> <div class="form-group"> <label for="inputPassword3" class="col-sm-3 control-label"> 密码</label> <div class="col-sm-9"> <input type="password" class="form-control" id="inputPassword3" placeholder="请输入您的密码" required> </div> </div> <div class="form-group"> <div class="col-sm-offset-3 col-sm-9"> <div class="checkbox"> <label> <input type="checkbox"/> 记住我 </label> </div> </div> </div> <div class="form-group last"> <div class="col-sm-offset-3 col-sm-9"> <button type="submit" class="btn btn-success btn-sm"> 登录</button> <button type="reset" class="btn btn-default btn-sm"> 取消</button> </div> </div> </form> </div> <div class="panel-footer"> 还没有注册? <a href="http://www.jquery2dotnet.com">我要立即注册</a></div> </div> </div> </div> </div>
body { background: url(http://lorempixel.com/1920/1920/city/9/) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; /** 自定义 */ font-family: Arial, 微软雅黑, 宋体, Geneva, Tahoma, sans-serif; } .panel-default { opacity: 0.9; margin-top:30px; } .form-group.last { margin-bottom:0px; }

Related: See More


Questions / Comments: