admin管理员组文章数量:1558086
我们可以用css来做这个登录的表格
具体的完整代码实现如下:
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>登录qq邮箱</title>
<style type="text/css">
* {
padding: 0;
margin: 0;
}
.content {
width: 1100px;
height: 500px;
}
.content .text h1 {
color: #1d5494;
margin-bottom: 20px;
}
.content .text p {
font-size: 13px;
}
.content .login {
float: left;
width: 350px;
height: 400px;
border: 1px solid #1d5494;
}
.content .login .sidebar {
border-bottom: 1px solid #1d5494;
height: 50px;
line-height: 50px;
}
.content .login ul li {
list-style-type: none;
display: block;
height: 50px;
font-size: 16px;
color: gray;
}
.content .login ul .tab1 {
float: left;
margin-left: 45px;
cursor: pointer;
}
.content .login ul .tab2 {
float: right;
margin-right: 45px;
cursor: pointer;
}
.content .login .acount {
margin-top: 40px;
margin-left: 27px;
width: 280px;
height: 35px;
}
.content .login .password {
margin-top: 15px;
margin-left: 27px;
width: 280px;
height: 35px;
}
.content .login .checkbox {
float: left;
margin-top: 30px;
margin-left: 30px;
width: 20px;
height: 20px;
border: 1px solid black;
background: white;
}
.content .login p {
margin-top: 30px;
float: left;
}
.content .login .submit {
margin-left: 27px;
margin-top: 10px;
width: 280px;
height: 40px;
background: cornflowerblue;
border: 1px solid cornflowerblue;
font-size: 16px;
color: white;
cursor: pointer;
}
.content .login .forget {
float: left;
margin-top: 80px;
margin-left: 30px;
}
.content .login .new {
float: right;
margin-top: 80px;
margin-right: 30px;
}
.content .login a {
color: #1d5494;
text-decoration: none;
}
.content .login a:hover {
text-decoration: underline;
}
.footer a {
color: #1d5494;
text-decoration: none;
}
.footer a:hover {
text-decoration: underline;
}
</style>
<body>
<div class="content">
<div class="login">
<ul class="sidebar">
<li class="tab1">微信登录</li>
<li class="tab2">QQ登陆</li>
</ul>
<input type="text" placeholder="支持QQ号/邮箱/手机号登录" class="acount"/><br>
<input type="password" placeholder="QQ密码" class="password"/><br>
<input type="checkbox" class="checkbox"/>
<p>下次自动登录</p><br>
<input type="submit" value="登录" class="submit">
<nav>
<a href="#" class="forget">忘了密码?</a>
<a href="#" class="new">注册新账号</a>
</nav>
</div>
</div>
</body>
</html>
效果图:
版权声明:本文标题:web之qq邮箱登录界面 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/xitong/1727386400a1112372.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论