穿搭速递html网页制作代码
时间: 2023-09-04 08:10:44 浏览: 67
以下是一个简单的穿搭速递 HTML 网页制作代码:
```html
<!DOCTYPE html>
<html>
<head>
<title>穿搭速递</title>
<style>
body {
margin: 0;
padding: 0;
background-color: #F2F2F2;
font-family: Arial, sans-serif;
}
header {
background-color: #fff;
padding: 10px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
display: flex;
align-items: center;
justify-content: space-between;
}
.logo {
font-size: 24px;
font-weight: bold;
}
nav {
display: flex;
}
nav a {
color: #333;
text-decoration: none;
padding: 10px;
margin-right: 10px;
border-radius: 5px;
transition: all 0.2s ease-in-out;
}
nav a:hover {
background-color: #333;
color: #fff;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.item {
background-color: #fff;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
padding: 20px;
margin-bottom: 20px;
width: 48%;
border-radius: 5px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
}
.item img {
max-width: 100%;
margin-bottom: 10px;
}
.item h2 {
font-size: 20px;
margin-bottom: 10px;
}
.item p {
font-size: 16px;
margin-bottom: 20px;
}
@media (max-width: 768px) {
.item {
width: 100%;
}
}
</style>
</head>
<body>
<header>
<div class="logo">穿搭速递</div>
<nav>
<a href="#">首页</a>
<a href="#">男装</a>
<a href="#">女装</a>
<a href="#">配饰</a>
<a href="#">关于我们</a>
</nav>
</header>
<div class="container">
<div class="item">
<img src="https://via.placeholder.com/300x300" alt="Item 1">
<h2>女装标题</h2>
<p>女装描述</p>
<a href="#">查看详情</a>
</div>
<div class="item">
<img src="https://via.placeholder.com/300x300" alt="Item 2">
<h2>男装标题</h2>
<p>男装描述</p>
<a href="#">查看详情</a>
</div>
<div class="item">
<img src="https://via.placeholder.com/300x300" alt="Item 3">
<h2>配饰标题</h2>
<p>配饰描述</p>
<a href="#">查看详情</a>
</div>
<div class="item">
<img src="https://via.placeholder.com/300x300" alt="Item 4">
<h2>女装标题</h2>
<p>女装描述</p>
<a href="#">查看详情</a>
</div>
</div>
</body>
</html>
```
你可以根据需要自定义样式和内容。