使用html+css写一个TNT时代少年团的主要作品的代码,包括音乐专辑,音乐单曲,综艺节目,杂志写真以及,演唱会记录
时间: 2023-10-10 11:06:28 浏览: 73
以下是一个简单的HTML和CSS代码示例,其中包括TNT时代少年团的主要作品,包括音乐专辑,音乐单曲,综艺节目,杂志写真以及演唱会记录。请注意,此示例仅用于参考,您可以根据实际情况进行修改。
```html
<!DOCTYPE html>
<html>
<head>
<title>TNT时代少年团</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
}
h1 {
color: #cc0066;
text-align: center;
margin-top: 50px;
}
.container {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
margin: 50px auto;
max-width: 1200px;
}
.item {
background-color: #fff;
box-shadow: 0 0 5px rgba(0,0,0,0.3);
margin: 20px;
padding: 20px;
text-align: center;
width: 250px;
}
.item img {
max-width: 100%;
height: auto;
margin-bottom: 10px;
}
.item h2 {
color: #cc0066;
font-size: 20px;
margin: 0;
text-transform: uppercase;
}
.item p {
color: #666;
font-size: 16px;
}
</style>
</head>
<body>
<h1>TNT时代少年团</h1>
<div class="container">
<div class="item">
<img src="album1.jpg" alt="音乐专辑">
<h2>音乐专辑</h2>
<p>《青春修炼手册》</p>
</div>
<div class="item">
<img src="single1.jpg" alt="音乐单曲">
<h2>音乐单曲</h2>
<p>《你的答案》</p>
</div>
<div class="item">
<img src="variety1.jpg" alt="综艺节目">
<h2>综艺节目</h2>
<p>《偶像练习生》</p>
</div>
<div class="item">
<img src="magazine1.jpg" alt="杂志写真">
<h2>杂志写真</h2>
<p>《ELLE》</p>
</div>
<div class="item">
<img src="concert1.jpg" alt="演唱会记录">
<h2>演唱会记录</h2>
<p>《TNT演唱会2019》</p>
</div>
</div>
</body>
</html>
```
在上面的代码中,我们使用了flex布局来排列五个项目。每个项目都有一个图片、一个标题和一个描述。我们还使用了一些CSS样式来美化页面,包括背景颜色、盒子阴影、字体等。您可以根据需要进行修改和调整。