首页 > 代码库 > div+css登陆界面案例

div+css登陆界面案例

<!DOCTYPE html><html lang="en"><head>    <style type="text/css">        body{            margin:0px;            padding:0px;            font-size: 12px;            background-color:#016AA9;            overflow: hidden;            text-align:center;        }        #container{            width:980px;        }        #login{            padding-top: 1px;            
background-image
: url(images/login.gif); width:846px; height: 418px; margin-top: 120px; margin-left: 150px; } #form{ margin-top: 175px; margin-left: -10px; } #input div{ margin-bottom: 12px; } #input div input{ width:150px; height: 18px; background-color: #292929; border:0px; color:#6CD0ff; } #btn input{ border: 0px; background-image: url(images/dl.gif); width: 49px; height: 20px; color: #FFFFFF; margin-left: 8px; cursor: pointer; } #btn{ margin-left: 25px; margin-top: 8px; } </style></head><body> <div id="container"> <div id="login"> <div id="form"> <form> <div id="input"> <div>用户:<input type="text" name="username" /></div> <div>密码:<input type="password" name="password"></div> </div> <div id="btn"> <input type="submit" value="登陆" /> <input type="button" value="注册" onclick="window.location.href=http://www.mamicode.com/‘/regeiter.html‘" /> </div> </form> </div> </div> </div>
</body></html>