做个HTML网页,每排6个图片,每个图片间隔15PX,最上面间隔50PX,一共有5排图片,背景色为黑色
时间: 2023-08-10 14:03:10 浏览: 153
做网页图片
以下是一个简单的HTML网页,实现了你的要求:
```html
<!DOCTYPE html>
<html>
<head>
<title>图片网页</title>
<style>
body {
background-color: black;
}
.image-row {
margin-top: 50px;
}
.image {
display: inline-block;
margin-right: 15px;
}
</style>
</head>
<body>
<div class="image-row">
<img class="image" src="image1.jpg" alt="Image 1">
<img class="image" src="image2.jpg" alt="Image 2">
<img class="image" src="image3.jpg" alt="Image 3">
<img class="image" src="image4.jpg" alt="Image 4">
<img class="image" src="image5.jpg" alt="Image 5">
<img class="image" src="image6.jpg" alt="Image 6">
</div>
<div class="image-row">
<img class="image" src="image7.jpg" alt="Image 7">
<img class="image" src="image8.jpg" alt="Image 8">
<img class="image" src="image9.jpg" alt="Image 9">
<img class="image" src="image10.jpg" alt="Image 10">
<img class="image" src="image11.jpg" alt="Image 11">
<img class="image" src="image12.jpg" alt="Image 12">
</div>
<div class="image-row">
<img class="image" src="image13.jpg" alt="Image 13">
<img class="image" src="image14.jpg" alt="Image 14">
<img class="image" src="image15.jpg" alt="Image 15">
<img class="image" src="image16.jpg" alt="Image 16">
<img class="image" src="image17.jpg" alt="Image 17">
<img class="image" src="image18.jpg" alt="Image 18">
</div>
<div class="image-row">
<img class="image" src="image19.jpg" alt="Image 19">
<img class="image" src="image20.jpg" alt="Image 20">
<img class="image" src="image21.jpg" alt="Image 21">
<img class="image" src="image22.jpg" alt="Image 22">
<img class="image" src="image23.jpg" alt="Image 23">
<img class="image" src="image24.jpg" alt="Image 24">
</div>
<div class="image-row">
<img class="image" src="image25.jpg" alt="Image 25">
<img class="image" src="image26.jpg" alt="Image 26">
<img class="image" src="image27.jpg" alt="Image 27">
<img class="image" src="image28.jpg" alt="Image 28">
<img class="image" src="image29.jpg" alt="Image 29">
<img class="image" src="image30.jpg" alt="Image 30">
</div>
</body>
</html>
```
你可以将 `src` 属性中的图片文件名替换为你自己的图片文件名。
阅读全文