bootstrap音乐网站
时间: 2023-12-16 10:02:39 浏览: 140
以下是使用Bootstrap创建的一个音乐网站的示例:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bootstrap Music Website</title>
<!-- 引入Bootstrap样式文件 -->
<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.0.0/css/bootstrap.min.css">
</head>
<body>
<!-- 导航栏 -->
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">Music Website</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Music Charts</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Artists</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Genres</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Search</a>
</li>
</ul>
</div>
</nav>
<!-- 主要内容区域 -->
<div class="container">
<div class="row">
<div class="col-md-8">
<h1>Welcome to our Music Website</h1>
<p>Here you can find the latest music charts, discover new artists, and explore different genres of music.</p>
<p>Use the navigation bar above to get started, or search for your favorite songs and artists.</p>
</div>
<div class="col-md-4">
<img src="https://via.placeholder.com/300x300" alt="Music Image" class="img-fluid">
</div>
</div>
</div>
<!-- 引入Bootstrap JavaScript文件 -->
<script src="https://cdn.bootcss.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
</body>
</html>
```
阅读全文