<style>
body{
background:url("/images/login.jpg") ;
background-repeat:no-repeat ;
background-size:100% 100%;
background-attachment: fixed;
position: relative
}
#pic{
margin: 0px auto;
max-width: 280px;
position: absolute;
bottom: 30%;
right: 35%;
left: 35%;
}
</style>
</head>
<body>
<div id="pic">
<form id="loginForm">
<div class="form-group">
<input type="text" class="form-control" placeholder="Username" name="username"/>
</div>
<div class="form-group">
<input type="password" class="form-control" placeholder="Password" name="password"/>
</div>
<div style="text-align: center">
<button type="button" class="btn btn-primary" id="loginBtn">登 录</button>
</div>
<div>
</div>
</form>
</div>