<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="Untitl.css">
<title>导航与轮播图</title>
</head>
<body>
<div class="top">
<div class="content">
<!--logo搜索框-->
<header class="logos">
<a href="" class="logo"><img src="images/logo.png" alt=""></a>
<div class="search">
<from>
<input type="search" name="search" id="search">
<button>
</button>
</from>
</div>
<div class="quick">
<a href="" class="iconfont icon-huiyuan1"><img width="40px" src="images/1.JPG"></a>
<a href="" class="iconfont icon-danmu1"><img width="40px" src="images/2.JPG"></a>
<a href="" class="iconfont icon-fabu"><img width="40px" src="images/3.JPG"></a>
<a href="" class="iconfont icon-fangda"><img width="40px" src="images/4.JPG"></a>
<a href="" class="iconfont icon-huiyuan2"><img width="40px" src="images/5.JPG"></a>
<a href="" class="iconfont icon-dianzan"><img width="40px" src="images/6.JPG"></a>
</div>
</header>
<!--列表-->
<main>
<div class="nav_wk">
<div class="nav_left">
<div class="nav_ico">
<i class="fa fa-file-text-o"></i>
</div>
<div class="nav_text">
<li><a href="#">咨询</a></li>
<li><a href="#">学习</a></li>
</div>
</div>
<div class="nav_right">
<li class="nav_top">
<a href="#"> <span>器材</span></a>
<a href="#"><span>学员</span></a>
<a href="#"><span>大师</span></a>
<a href="#"> <span>实战</span></a>
</li>
<li class="nav_top">
<a href="#"> <span>大赛</span></a>
<a href="#"><span>影视</span></a>
<a href="#"><span>裤子</span></a>
<a href="#"><span>其他</span></a>
</li>
</div>
</div>
<div class="nav_wk">
<div class="nav_left">
<div class="nav_ico"><i class="fa fa-file-text-o"></i></div>
<div class="nav_text">
<li><a href="#">爱好</a></li>
<li><a href="#">姐妹</a></li>
</div>
</div>
<div class="nav_right">
<li class="nav_top">
<a href="#"> <span>优品</span></a>
<a href="#"><span>图片</span></a>
<a href="#"><span>喝水</span></a>
<a href="#"> <span>飞机</span></a>
</li>
<li class="nav_top">
<a href="#"> <span>坦克</span></a>
<a href="#"><span>气球</span></a>
<a href="#"><span>毛线</span></a>
<a href="#"><span>其他</span></a>
</li>
</div>
</div>
<div class="nav_wk">
<div class="nav_left">
<div class="nav_ico"><i class="fa fa-file-text-o"></i></div>
<div class="nav_text">
<li><a href="#">软件</a></li>
<li><a href="#">技能</a></li>
</div>
</div>
<div class="nav_right">
<li class="nav_top">
<a href="#"> <span>学习</span></a>
<a href="#"><span>爱国</span></a>
<a href="#"><span>敬业</span></a>
<a href="#"> <span>友善</span></a>
</li>
<li class="nav_top">
<a href="#"> <span>富强</span></a>
<a href="#"><span>互助</span></a>
<a href="#"><span>仁义</span></a>
<a href="#"><span>其他</span></a>
</li>
</div>
</div>
<div class="nav_wk">
<div class="nav_left">
<div class="nav_ico"><i class="fa fa-file-text-o"></i></div>
<div class="nav_text">
<li><a href="#">编程</a></li>
<li><a href="#">美女</a></li>
</div>
</div>
<div class="nav_right">
<li class="nav_top">
<a href="#"> <span>吃饭</span></a>
<a href="#"><span>周易</span></a>
<a href="#"><span>黄山</span></a>
<a href="#"> <span>合肥</span></a>
</li>
<li class="nav_top">
<a href="#"> <span>上海</span></a>
<a href="#"><span>杭州</span></a>
<a href="#"><span>北京</span></a>
<a href="#"><span>其他</span></a>
</li>
</div>
</div>
</main>
<!--图片-->
<footer>
<a href=""><img src="images/a.jpg" alt=""></a>
<a href=""><img src="images/banner-right.jpg" alt=""></a>
</footer>
</div>
</div>
</body>
</html>
</html>
@charset “utf-8”;
/ CSS Document /
/首页导航+轮播图/
.top {
background-color: #fff;
padding: 30px 0 40px;
display: flex;
flex-direction: column;
}
.top .content {
width: 1200px;
margin: auto;
}
/logo搜索框/
.top .content .logos {
display: flex;
align-content:left;
}
.top .content .logos {
display: flex;
}
/搜索框/
.search {
width: 430px;
display: inline-block;
position: relative;/定位类型/
left: 200px;
}
.quick{
display: inline-block;
position: relative;
left:300px;
}
.top .content .logos .search input {
width: 333px;
height: 36px;
border: 1px solid #cccccc;
border-radius: 10px;
outline: none;
padding: 6px;
align-self: center;/垂直居中/
}
.top .content .logos .search input:hover {
box-shadow: 0 0 5px #888888;
}
.top .content .logos .search label {
font-size: 28px;
position: relative;
top: 2px;
left: -38px;
align-self: center;
}
button{
background: url(“images/7.png”);
width: 29px;
height: 30px;
position: absolute;
top: 3px;
left: 300px;
border: none;
}
.top .content .logos .quick {
width: 300px;
display: flex;
}
/图标设置/
.top .content .logos .quick a {
font-size: 33px;
align-self: center;
}
.top .content .logos .quick a:hover {
color: red;
}
/列表/
.nav{
width: 120px;
margin: 0 auto;
font-size: 15px;
}
.nav_wk{
float: left;
width:300px;
height:40px;
}
.nav_wk a{
color: #666666;
}
.nav_left,.nav_right{
float: left;
height: 40px;
width: 80px;
}
.nav_ico {
width: 40px;
height: 40px;
color: #ff0000;
font-size: 30px;
float: left;
}
.nav_text{
width: 38px;
height: 40px;
float: left;
border-right: 2px solid #d3d3d3;
}
.nav_text li{
list-style: none;
text-decoration:none;
}
.nav_text li a{
list-style: none;
text-decoration:none;
}
.nav_right{
width: 160px;
height: 40px;
}
.nav_top{
width: 160px;
height: 20px;
text-align: center;
}
.nav_top span{
display: block;
float: left;
width: 40px;
height: 20px;
}
li{
list-style: none;
}
/图片/
.top .content .slider {
display: grid;
grid-template-columns: 900px 295px;
grid-column-gap: 5px;
}
.top .content .slider img:last-of-type:hover {
box-shadow: 0 0 8px #888888;
}
a{
text-decoration: none;
color: #2b2b2b;
}