几乎每一个网站都会有登录页面,那你晓得怎样写HTML登录页面吗?这篇文案就和大众分享一个HTML简单登录界面的代码,有必定的参考价值,感兴趣的伴侣能够瞧瞧。
实例:制作一个HTML登录页面,包括邮箱,登录暗码,立即注册,忘记暗码等,代码如下:
HTML部分:
<div class="dowebok">
<div class="logo"></div>
<div class="form-item">
<input id="username" type="text" autocomplete="off" placeholder="邮箱">
</div>
<div class="form-item">
<input id="password" type="password" autocomplete="off" placeholder="登录暗码">
</div>
<div class="form-item"><button id="submit">登 录</button></div>
<div class="reg-bar">
<a class="reg" href="javascript:">立即注册</a>
<a class="forget" href="javascript:">忘记暗码</a>
</div>
</div>
CSS部分:
* { margin: 0; padding: 0; }
html { height: 100%; }
body { height: 100%; bac公斤round: #fff url(img/bac公斤roud.png) 50% 50% no-repeat; bac公斤round-size: cover;}
.dowebok { position: absolute; left: 50%; top: 50%; width: 430px; height: 550px; margin: -300px 0 0 -215px; border: 1px solid #fff; border-radius: 20px; overflow: hidden;}
.logo { width: 104px; height: 104px; margin: 50px auto 80px; bac公斤round: url(img/login.png) 0 0 no-repeat; }
.form-item { position: relative; width: 360px; margin: 0 auto; padding-bottom: 30px;}
.form-item input { width: 288px; height: 48px; padding-left: 70px; border: 1px solid #fff; border-radius: 25px; font-size: 18px; color: #fff; bac公斤round-color: transparent; outline: none;}
.form-item button { width: 360px; height: 50px; border: 0; border-radius: 25px; font-size: 18px; color: #1f6f4a; outline: none; cursor: pointer; bac公斤round-color: #fff; }
#username { bac公斤round: url(img/emil.png) 20px 14px no-repeat; }
#password { bac公斤round: url(img/password.png) 23p
|