html景点网页制作
时间: 2023-12-27 19:25:21 浏览: 30
根据提供的引用内容,以下是一个简单的HTML景点网页制作的示例:
```html
<!DOCTYPE html>
<html>
<head>
<title>景点网页</title>
<style>
body {
font-family: Arial,-serif;
background-color: #f2f2f2;
}
h1 color: #333333;
text-align: center;
}
.container {
max-width: 800px;
m: 0 auto;
padding: 20px;
background-color: #ffffff;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.spot {
margin-bottom: 20px;
}
.spot img {
width: 100%;
border-radius: 5px;
}
.spot h2 {
margin-top: 10px;
color: #333333;
}
.spot p {
color: #666666;
}
</style>
</head>
<body>
<div class="container">
<h1>热门景点</h1>
<div class="spot">
<img src="spot1.jpg" alt="景点1">
<h2>景点1</h2>
<p>景点1的介绍...</p>
</div>
<div class="spot">
<img src="spot2.jpg" alt="景点2">
<h2>景点2</h2>
<p>景点2的介绍...</p>
</div>
<div class="spot">
<img src="spot3.jpg" alt="景点3">
<h2>景点3</h2>
<p>景点3的介绍...</p>
</div>
</div>
</body>
</html>
```
这个示例展示了一个简单的景点网页,包括了标题、景点图片、景点名称和景点介绍。你可以根据实际情况修改图片和文字内容,以适应你的网页需求。