Files
ClassContent/历届学生/front-end-team/项目练习/上课项目/itHomeSearch/header.html
2024-09-27 02:06:13 +08:00

152 lines
3.4 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<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>Document</title>
<style>
* {
margin: 0;
padding: 0;
list-style: none;
text-decoration: none;
border: none;
outline: none;
}
.left {
float: left;
}
.right {
float: right;
}
.center {
width: 1200px;
margin: 0 auto;
}
.header {
height: 66px;
background: #1a1a1a;
}
.header_left {}
.header_left .logo {
margin-top: 15px;
margin-right: 35px;
}
.header_left ul {
line-height: 53px;
}
.header_left ul li,
.header_right li {
float: left;
margin-left: 15px;
width: 70px;
text-align: center;
border-bottom: 6px solid #1a1a1a;
border-top: 6px solid #1a1a1a;
}
.header_left ul li:hover,
.header_right li:hover {
background: #d22222;
border-top-color: #d22222;
border-bottom-color: #d22222;
}
.header_left .active {
border-bottom-color: #d22222;
}
.header_left ul li a,
.header_right li a,
.header_right li span {
font-size: 18px;
color: #fff;
opacity: .8;
}
.header_right {
line-height: 53px;
}
.header_right li {}
.header_right li:nth-child(4) {
width: 104px;
background: #2e6cf3;
border-top-color: #2e6cf3;
border-bottom-color: #2e6cf3;
}
.header_right li a {}
.header_right li span {
vertical-align: bottom;
}
.header_right li img {
width: 9px;
}
</style>
</head>
<body>
<div class="header">
<div class="center">
<div class="header_left left">
<a class="left" href="">
<img class="logo" src="https://img.ithome.com/www/ithome.logo.svg" alt="">
</a>
<ul class="left">
<li class="active">
<a href="">首页</a>
</li>
<li>
<a href="">IT圈</a>
</li>
<li>
<a href="">辣品</a>
</li>
</ul>
</div>
<ul class="header_right right">
<li>
<span>设置</span>
<img src="./more.png" alt="">
</li>
<li>
<a href="">投稿</a>
</li>
<li>
<span>订阅</span>
<img src="./more.png" alt="">
</li>
<li>
<span>软媒应用</span>
<img src="./more.png" alt="">
</li>
<li>
<span>登录</span>
</li>
</ul>
</div>
</div>
</body>
</html>