<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>暴雪</title>
<link href="blizzard.css" rel="stylesheet">
</head>
<body>
<!--toubu-->
<div class="head">
<div class="logo">
<a href=""><img src="image/logo.png"></a>
</div>
<ul class="l-nav">
<li><a href="">游戏</a></li>
<li><a href="">商城</a></li>
<li><a href="">新闻</a></li>
<li><a href="">电子竞技</a></li>
<li><a href="">Blizzard</a></li>
</ul>
<ul class="r-nav">
<li><a href="">支持</a></li>
<li><a href="">我的账户</a></li>
</ul>
</div>
<!--中部logo-->
<div class="m-logo">
<a href=""><img src="image/bnet.png"></a>
</div>
<div class="middle">
<div class="m-left">
<p class="title">同<b>数以百万计</b>的玩家一同参与线上活动,共同感受最为精彩的游戏体验!
<span>了解更多内容</span></p>
<p class="login">
<a href="" class="a1">注册战网通行证</a>
<a href="" class="a2">登录</a>
</p>
</div>
</div>
</body>
</html
*{
margin: 0;
padding: 0;
}
ul{
list-style: none;
}
img{
vertical-align: middle;/*img独有标签,会比图片大3px,初始化图片*/
}
body{
background: url("image/bgtop.jpg") center 0;
background-repeat: no-repeat;
}
.head{
height: 60px;
background: rgba(255,255,255,0.07);
border-bottom: 1px solid rgba(255,255,255,0.1);
}
.head .logo{
float: left;
margin: 0;
}
.head .l-nav{
float: left;
height: 60px;
}
.head .l-nav li{
float: left;
margin: 0 10px;
}
.head .l-nav li a{
text-decoration: none;
display: block;
height: 60px;
line-height: 60px;
color: rgba(255,255,255,0.7);
}
.head .l-nav li a:hover{
color: rgba(255,255,255);
}
.head .r-nav{
float: right;
margin-right: 20px;
height: 60px;
line-height: 60px;
}
.head .r-nav li{
float: left;
margin:0 10px ;
}
.head .r-nav li a{
font-size: 13px;
text-decoration: none;
display: block;
height: 60px;
line-height: 60px;
color: rgba(255,255,255,0.7);
}
.m-logo{
margin: 50px 0;
}
.middle{
width: 95%;
margin: 0 auto;
height: 400px;
}
.middle .m-left{
width: 56%;
height: 400px;
float: left;
}
.middle .m-left .title{
color: #a2b9c2;
font-size: 30px;
letter-spacing: 1px;/*字和字之间的间距*/
cursor: pointer;
}
.middle .m-left .title span{
font-size: 14px;
padding: 3px 5px;
border: 1px solid #3a4c53;
border-radius: 5px;
position: relative;
top: -5px;
left: 0;
}
.middle .m-left .title:hover{
color: #FFFFFF;
}
.middle .m-left .title:hover span{/*hover状态下的元素效果*/
background:#3a4c53 ;
color: rgba(255,255,255,0.7);
}
.middle .m-left .a1{
color: #FFFFFF;
font-size: 12px;
background: #006a9b;
border-radius: 5px;
padding: 10px;
text-decoration: none;
}
.middle .m-left .a1:hover{
color: cornflowerblue;
}
.middle .m-left .a2{
text-decoration: none;
color: aqua;
padding-left: 3px;
}
.middle .m-left .a2:hover{
color: #FFFFFF;
}
.middle .m-left p{
margin-top: 15px;
}
火狐截图_2018-10-23T12-52-57.133Z.png