博客列表 >1220作业

1220作业

安
原创
2019年12月23日 01:03:34572浏览

<!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搜索框-->
<div 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>
</div>

  1. <!--列表-->
  2. <div class="main">
  3. <div class="nav">
  4. <div class="pic">
  5. <span class="iconfont icon-gongdan"></span>
  6. <div>
  7. <spean>资讯</spean>
  8. <span>学习</span>
  9. </div>
  10. </div>
  11. <div class="links">
  12. <li><a href="">器材</a></li>
  13. <li><a href="">大师</a></li>
  14. <li><a href="">学院</a></li>
  15. <li><a href="">实战</a></li>
  16. <li><a href="">大赛</a></li>
  17. <li><a href="">裤子</a></li>
  18. <li><a href="">影视</a></li>
  19. <li><a href="">其它</a></li>
  20. </div>
  21. </div>
  22. <div class="nav">
  23. <div class="pic">
  24. <span class="iconfont icon-renwujincheng"></span>
  25. <div>
  26. <span>爱好</span>
  27. <span>姐妹</span>
  28. </div>
  29. </div>
  30. <div class="links">
  31. <li><a href="">有品</a></li>
  32. <li><a href="">图片</a></li>
  33. <li><a href="">喝水</a></li>
  34. <li><a href="">飞机</a></li>
  35. <li><a href="">坦克</a></li>
  36. <li><a href="">气球</a></li>
  37. <li><a href="">毛线</a></li>
  38. <li><a href="">其它</a></li>
  39. </div>
  40. </div>
  41. <div class="nav">
  42. <div class="pic">
  43. <span class="iconfont icon-gongdan"></span>
  44. <div>
  45. <span>软件</span>
  46. <span>技能</span>
  47. </div>
  48. </div>
  49. <div class="links">
  50. <li><a href="">学习</a></li>
  51. <li><a href="">爱国</a></li>
  52. <li><a href="">敬业</a></li>
  53. <li><a href="">友善</a></li>
  54. <li><a href="">富强</a></li>
  55. <li><a href="">互助</a></li>
  56. <li><a href="">仁义</a></li>
  57. <li><a href="">其它</a></li>
  58. </div>
  59. </div>
  60. <div class="nav">
  61. <div class="pic">
  62. <span class="iconfont icon-DOC"></span>
  63. <div>
  64. <span>编程</span>
  65. <span>美女</span>
  66. </div>
  67. </div>
  68. <div class="links">
  69. <li><a href="">吃饭</a></li>
  70. <li><a href="">周易</a></li>
  71. <li><a href="">黄山</a></li>
  72. <li><a href="">合肥</a></li>
  73. <li><a href="">上海</a></li>
  74. <li><a href="">杭州</a></li>
  75. <li><a href="">北京</a></li>
  76. <li><a href="">其它</a></li>
  77. </div>
  78. </div>
  79. </div>
  80. <!--图片-->
  81. <div class="slider">
  82. <a href=""><img src="images/a.jpg" alt=""></a>
  83. <a href=""><img src="images/banner-right.jpg" alt=""></a>
  84. </div>
  85. </div>

</div>
</body>
</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;
justify-content: space-between;
}
/图标设置/
.top .content .logos .quick a {
font-size: 33px;
align-self: center;
}
.top .content .logos .quick a:hover {
color: red;
}

/列表/

.top .content .main {
margin: 20px auto;
display: grid;
grid-template-columns: repeat(4, 300px);
}
.top .content .main .nav {
display: flex;
}
.top .content .main .nav .pic {
padding-right: 10px;
border-right: 1px solid #cccccc;
display: flex;
}
.top .content .main .nav .pic span {
font-size: 15px;
color:#272727;
}
.top .content .main .nav .pic div {
padding-left: 5px;
display: flex;
flex-direction: column;
justify-content: space-around;
}
.top .content .main .nav .links {
padding-left: 10px;
display: grid;
grid-template-columns: repeat(4, minmax(30px, auto));
grid-column-gap: 10px;
}
.links{
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;
}

声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议