导航栏
今天花了一些时间学习了一下导航栏,还是很重要的,打算一步一步开始
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
body{
background-color: #000;
}
a{
width: 200px;
height: 50px;
text-align:center;
/*文字水平居中*/
line-height: 50px;
/*垂直居中*/
display: inline-block;
color: #fff;
/*background-color: orange;*/
font-size: 22px;
text-decoration: none;
/*取下文本下划线*/
}
a:hover{
background: url(../image/h.png) no-repeat;
}
</style>
</head>
<body>
<a href="#">专区说明</a>
<a href="#">申请资格</a>
<a href="#">兑换奖励</a>
<a href="#">下载游戏</a>
</body>
</html>
效果图