<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>小说网</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f5f5f5;
}
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
background-color: #333;
color: white;
}
header a {
color: white;
text-decoration: none;
margin: 0 10px;
}
nav {
background-color: #444;
padding: 10px 20px;
}
nav a {
color: white;
text-decoration: none;
margin: 0 10px;
}
nav .dropdown {
position: relative;
display: inline-block;
}
nav .dropdown-content {
display: none;
position: absolute;
background-color: #555;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}
nav .dropdown-content a {
color: white;
padding: 12px 16px;
text-decoration: none;
display: block;
}
nav .dropdown:hover .dropdown-content {
display: block;
}
.container {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
padding: 20px;
}
.novel {
width: 18%;
margin: 10px 0;
text-align: center;
background-color: white;
padding: 10px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.novel img {
width: 100%;
height: auto;
border-radius: 5px;
}
</style>
</head>
<body>
<header>
<div><a href="#"><img src="logo.png" alt="小说网"></a></div>
<input type="text" placeholder="搜索">
<div>
<a href="#">注册</a>/
<a href="#">登录</a>
</div>
</header>
<nav>
<a href="index.html">首页</a>
<div class="dropdown">
<a href="#">排行</a>
<div class="dropdown-content">
<a href="#">小说排行</a>
<a href="#">作家排行</a>
</div>
</div>
<a href="#">分类</a>
</nav>
<div class="container">
<!-- 第一行 -->
<div class="novel"><a href="#"><img src="150.webp" alt="封面"><p>小说</p></a></div>
<div class="novel"><a href="#"><img src="" alt="封面"><p>小说</p></a></div>
<div class="novel"><a href="#"><img src="" alt="封面"><p>小说</p></a></div>
<div class="novel"><a href="#"><img src="" alt="封面"><p>小说</p></a></div>
<div class="novel"><a href="#"><img src="" alt="封面"><p>小说</p></a></div>
<!-- 第二行 -->
<div class="novel"><a href="#"><img src="150.webp" alt="封面"><p>小说</p></a></div>
<div class="novel"><a href="#"><img src="" alt="封面"><p>小说</p></a></div>
<div class="novel"><a href="#"><img src="" alt="封面"><p>小说</p></a></div>
<div class="novel"><a href="#"><img src="" alt="封面"><p>小说</p></a></div>
<div class="novel"><a href="#"><img src="" alt="封面"><p>小说</p></a></div>
<!-- 第三行 -->
<div class="novel"><a href="#"><img src="" alt="封面"><p>小说</p></a></div>
<div class="novel"><a href="#"><img src="" alt="封面"><p>小说</p></a></div>
<div class="novel"><a href="#"><img src="" alt="封面"><p>小说</p></a></div>
<div class="novel"><a href="#"><img src="" alt="封面"><p>小说</p></a></div>
<div class="novel"><a href="#"><img src="" alt="封面"><p>小说</p></a></div>
</div>
</body>
</html>
版权属于:
3440655380
作品采用:
《
署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)
》许可协议授权
评论 (0)