267 lines
7.2 KiB
HTML
267 lines
7.2 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>查看全部</title>
|
|
<style>
|
|
body,
|
|
input,
|
|
ul,
|
|
li {
|
|
font-size: 0;
|
|
margin: 0;
|
|
border: none;
|
|
outline: none;
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.left {
|
|
float: left;
|
|
}
|
|
|
|
.right {
|
|
float: right;
|
|
}
|
|
|
|
.auto {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.all {
|
|
width: 280px;
|
|
height: 35px;
|
|
background: #f7f7f7;
|
|
border-radius: 4px;
|
|
border: 1px solid #dcdcdc;
|
|
text-align: center;
|
|
line-height: 35px;
|
|
}
|
|
|
|
.all span {
|
|
font-size: 13px;
|
|
color: #787878;
|
|
}
|
|
|
|
.all img {
|
|
width: 11px;
|
|
height: 10px;
|
|
}
|
|
|
|
.search {
|
|
width: 160px;
|
|
height: 38px;
|
|
background: #eee;
|
|
border-radius: 40px;
|
|
}
|
|
|
|
.search input {
|
|
background: #fff0;
|
|
width: 80%;
|
|
height: 100%;
|
|
padding-left: 15px;
|
|
box-sizing: border-box;
|
|
float: left;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.search img {
|
|
width: 18px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.menu {
|
|
height: 38px;
|
|
background: #96b97d;
|
|
}
|
|
|
|
.menu .center {
|
|
width: 1260px;
|
|
height: 100%;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.menu ul {
|
|
line-height: 38px;
|
|
}
|
|
|
|
.menu ul li {
|
|
font-size: 14px;
|
|
color: #fff;
|
|
float: left;
|
|
margin-right: 20px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.menu ul li:hover {
|
|
color: #e3efd9;
|
|
}
|
|
|
|
.recommend {
|
|
width: 280px;
|
|
height: 330px;
|
|
}
|
|
|
|
.recommend .title {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.title .text {
|
|
font-size: 14px;
|
|
color: #969696;
|
|
}
|
|
|
|
.title .refresh img {
|
|
width: 14px;
|
|
height: 14px;
|
|
margin-top: 3px;
|
|
}
|
|
|
|
.title .refresh span {
|
|
color: #787878;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.list li {
|
|
overflow: hidden;
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.list li .head {
|
|
width: 46px;
|
|
height: 46px;
|
|
border-radius: 100%;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.list li .author {
|
|
margin-top: 4px;
|
|
width: 224px;
|
|
}
|
|
|
|
.list .author .author_title {
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.list .author .author_title .author_name {
|
|
font-size: 14px;
|
|
color: #333;
|
|
}
|
|
|
|
.author .author_title .author_add img {
|
|
width: 13px;
|
|
height: 13px;
|
|
margin-top: 3px;
|
|
}
|
|
|
|
.author .author_title .author_add span {
|
|
font-size: 13px;
|
|
color: #42c02e;
|
|
}
|
|
|
|
.list .author .author_text {
|
|
font-size: 12px;
|
|
color: #969696;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="search">
|
|
<input type="text" placeholder="搜索" />
|
|
<img src="./search.png" alt="">
|
|
</div>
|
|
|
|
<div class="all">
|
|
<span>查看全部</span>
|
|
<img src="./more.png" alt="">
|
|
</div>
|
|
|
|
<div class="menu">
|
|
<div class="center">
|
|
<ul>
|
|
<li>首页</li>
|
|
<li>HTML</li>
|
|
<li>CSS</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="recommend">
|
|
<div class="title auto">
|
|
<div class="text left">推荐作者</div>
|
|
<div class="refresh right">
|
|
<img src="./sx.png" alt="">
|
|
<span class="right">换一批</span>
|
|
</div>
|
|
</div>
|
|
<ul class="list">
|
|
<li>
|
|
<img class="head left"
|
|
src="https://upload.jianshu.io/users/upload_avatars/52841/251f5481-67b6-4bf0-86f4-faac9768beb3.jpeg?imageMogr2/auto-orient/strip|imageView2/1/w/96/h/96/format/webp"
|
|
alt="">
|
|
<div class="author left">
|
|
<div class="author_title auto">
|
|
<div class="author_name left">闫泽华</div>
|
|
<div class="author_add right">
|
|
<img src="./add.png" alt="">
|
|
<span class="right">关注</span>
|
|
</div>
|
|
</div>
|
|
<div class="author_text">写了272.3k字 · 4.8k喜欢</div>
|
|
</div>
|
|
</li>
|
|
<li>
|
|
<img class="head left"
|
|
src="https://upload.jianshu.io/users/upload_avatars/52841/251f5481-67b6-4bf0-86f4-faac9768beb3.jpeg?imageMogr2/auto-orient/strip|imageView2/1/w/96/h/96/format/webp"
|
|
alt="">
|
|
<div class="author left">
|
|
<div class="author_title auto">
|
|
<div class="author_name left">闫泽华</div>
|
|
<div class="author_add right">
|
|
<img src="./add.png" alt="">
|
|
<span class="right">关注</span>
|
|
</div>
|
|
</div>
|
|
<div class="author_text">写了272.3k字 · 4.8k喜欢</div>
|
|
</div>
|
|
</li>
|
|
<li>
|
|
<img class="head left"
|
|
src="https://upload.jianshu.io/users/upload_avatars/52841/251f5481-67b6-4bf0-86f4-faac9768beb3.jpeg?imageMogr2/auto-orient/strip|imageView2/1/w/96/h/96/format/webp"
|
|
alt="">
|
|
<div class="author left">
|
|
<div class="author_title auto">
|
|
<div class="author_name left">闫泽华</div>
|
|
<div class="author_add right">
|
|
<img src="./add.png" alt="">
|
|
<span class="right">关注</span>
|
|
</div>
|
|
</div>
|
|
<div class="author_text">写了272.3k字 · 4.8k喜欢</div>
|
|
</div>
|
|
</li>
|
|
<li>
|
|
<img class="head left"
|
|
src="https://upload.jianshu.io/users/upload_avatars/52841/251f5481-67b6-4bf0-86f4-faac9768beb3.jpeg?imageMogr2/auto-orient/strip|imageView2/1/w/96/h/96/format/webp"
|
|
alt="">
|
|
<div class="author left">
|
|
<div class="author_title auto">
|
|
<div class="author_name left">闫泽华</div>
|
|
<div class="author_add right">
|
|
<img src="./add.png" alt="">
|
|
<span class="right">关注</span>
|
|
</div>
|
|
</div>
|
|
<div class="author_text">写了272.3k字 · 4.8k喜欢</div>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
|
|
</html> |