用HTML和CSS编写QQ邮箱网页
##头部
HTML
<div class="head">
<img src="photo.1/QQmail.png" alt="QQmaillog" weight="80" height="50">
<var>
<a href="#">基本版</a>|
<a href="#">English</a>|
<a href="#">手机版</a>|
<a href="#">企业邮箱</a>
</var>
</div>
CSS
.head
{
height:50px;
margin-top:0px;
background-color:rgb(193, 225, 236);
}
.head img
{
margin-top:0px;
margin-left:0px;
}
.head var
{
font-size:20px;
margin-top:5px;
margin-left:800px;
}
中间部分
HTML
<div class="central">
<h1 >
QQ邮箱,常联系!
</h1>
<word>
<p>没有什么能够阻挡</p>
<p>你对自由的向往</p>
<p>天马行空的生涯</p>
<p>你的心了无牵挂</p>
<p> </p>
<p>摘自《蓝莲花》</p>
<p style="color:rgb(122, 126, 126)">听更多许巍音乐</p>
</word>
<img src="photo.1/QQlog.png" alt="qqlog" weight="40" hight="40">
<div class="list">
<input type="submit"value="微信登录" class="wx">
<input type="submit"value="QQ登录" class="qq">
<p> </p>
<input type="text" placeholder="支持QQ/邮箱/手机号登录" class="text">
<p> </p>
<input type="password" placeholder="QQ密码" class="password">
<p> </p>
<input type="checkbox" class="checkbox" >下次自动登录
<p></p>
<input type="submit" value="登 录" class="submit">
<p> </p>
<a href="#" class="code">扫描二维码快捷登录</a>
<p> </p>
<a href="#" class="forgetpassword">忘记密码</a>
<a href="#" class="newaccount">新用户注册</a>
</div>
</div>
CSS
.central
{
color:black;
}
.central h1
{
margin-top:60px;
margin-left:200px;
color:deepskyblue;
}
.central word
{
margin-left:200px;
font-size:15px;
float:left;
}
.central .list
{
margin-top:-80px;
float:right;
width:350px;
height:400px;
border:1px solid #447fc3;
margin-right:200px;
}
.central .list .box
{
border-bottom:1px solid #447fc3;
height:50px;
line-height: 50px;
}
.central .list .wx
{
float:left;
width:175px;
height:50px;
background-color:rgb(143, 192, 239);
}
.central .list .qq
{
float:right;
width:175px;
height:50px;
background-color:rgb(143, 192, 239);
}
.certral .list p
{
height:20px;
}
.central .list .text
{
float:left;
margin-left:20px;
width:300px;
height:30px;
}
.central .list .password
{
float:left;
margin-left:20px;
width:300px;
height:30px;
}
.certral .list .checkbox
{
float:left;
border:1px solid black;
background:white;
}
.central .list .submit
{
float:left;
margin-left:20px;
width:300px;
height:30px;
border:1px solid rgb(60, 121, 233);
background-color:rgb(60, 121, 233);
font-size:20px;
}
.central .list .forgetpassword
{
float:left;
margin-left:10px;
font-size:15px;
}
.central .list .newaccount
{
float:right;
margin-right:10px;
font-size:15px;
}
.central .list .code
{
float:left;
margin-left:120px;
font-size:10px;
}
尾部
HTML
<div class="foot">
<a href="#">关于腾讯</a>|
<a href="#">服务条款</a>|
<a href="#">隐私政策</a>|
<a href="#">客服中心</a>|
<a href="#">联系我们</a>|
<a href="#">帮助中心</a>|
©1998 - 2022 Tencent Inc. All Rights Reserved.
</div>
CSS
.foot
{
position: fixed;
bottom:0;
left:0;
right:0;
height:40px;
text-align: center;
margin-bottom:0px;
background-color:rgb(193, 225, 236);
}
完整代码
<!DOCTYPE html>
<html lang="ch">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>登录QQ邮箱</title>
<style type="text/css">
body
{
font-size:20px;
}
.head
{
height:50px;
margin-top:0px;
background-color:rgb(193, 225, 236);
}
.head img
{
margin-top:0px;
margin-left:0px;
}
.head var
{
font-size:20px;
margin-top:5px;
margin-left:800px;
}
.central
{
color:black;
}
.central h1
{
margin-top:60px;
margin-left:200px;
color:deepskyblue;
}
.central word
{
margin-left:200px;
font-size:15px;
float:left;
}
.central .list
{
margin-top:-80px;
float:right;
width:350px;
height:400px;
border:1px solid #447fc3;
margin-right:200px;
}
.central .list .box
{
border-bottom:1px solid #447fc3;
height:50px;
line-height: 50px;
}
.central .list .wx
{
float:left;
width:175px;
height:50px;
background-color:rgb(143, 192, 239);
}
.central .list .qq
{
float:right;
width:175px;
height:50px;
background-color:rgb(143, 192, 239);
}
.certral .list p
{
height:20px;
}
.central .list .text
{
float:left;
margin-left:20px;
width:300px;
height:30px;
}
.central .list .password
{
float:left;
margin-left:20px;
width:300px;
height:30px;
}
.certral .list .checkbox
{
float:left;
border:1px solid black;
background:white;
}
.central .list .submit
{
float:left;
margin-left:20px;
width:300px;
height:30px;
border:1px solid rgb(60, 121, 233);
background-color:rgb(60, 121, 233);
font-size:20px;
}
.central .list .forgetpassword
{
float:left;
margin-left:10px;
font-size:15px;
}
.central .list .newaccount
{
float:right;
margin-right:10px;
font-size:15px;
}
.central .list .code
{
float:left;
margin-left:120px;
font-size:10px;
}
.foot
{
position: fixed;
bottom:0;
left:0;
right:0;
height:40px;
text-align: center;
margin-bottom:0px;
background-color:rgb(193, 225, 236);
}
</style>
</head>
<body>
<div class="head">
<img src="photo.1/QQmail.png" alt="QQmaillog" weight="80" height="50">
<var>
<a href="#">基本版</a>|
<a href="#">English</a>|
<a href="#">手机版</a>|
<a href="#">企业邮箱</a>
</var>
</div>
<div class="central">
<h1 >
QQ邮箱,常联系!
</h1>
<word>
<p>没有什么能够阻挡</p>
<p>你对自由的向往</p>
<p>天马行空的生涯</p>
<p>你的心了无牵挂</p>
<p> </p>
<p>摘自《蓝莲花》</p>
<p style="color:rgb(122, 126, 126)">听更多许巍音乐</p>
</word>
<img src="photo.1/QQlog.png" alt="qqlog" weight="40" hight="40">
<div class="list">
<input type="submit"value="微信登录" class="wx">
<input type="submit"value="QQ登录" class="qq">
<p> </p>
<input type="text" placeholder="支持QQ/邮箱/手机号登录" class="text">
<p> </p>
<input type="password" placeholder="QQ密码" class="password">
<p> </p>
<input type="checkbox" class="checkbox" >下次自动登录
<p></p>
<input type="submit" value="登 录" class="submit">
<p> </p>
<a href="#" class="code">扫描二维码快捷登录</a>
<p> </p>
<a href="#" class="forgetpassword">忘记密码</a>
<a href="#" class="newaccount">新用户注册</a>
</div>
</div>
<div class="foot">
<a href="#">关于腾讯</a>|
<a href="#">服务条款</a>|
<a href="#">隐私政策</a>|
<a href="#">客服中心</a>|
<a href="#">联系我们</a>|
<a href="#">帮助中心</a>|
©1998 - 2022 Tencent Inc. All Rights Reserved.
</div>
</body>
</html>