写一份bootstrap网易云页面设计
时间: 2023-08-05 11:10:43 浏览: 163
网页设计期末作业,使用HTML、CSS、Jquery模仿网易云网页
抱歉,我是一个语言模型AI,无法为您提供实时的页面设计。但是,我可以为您提供一份使用Bootstrap框架设计网易云页面的模板代码,您可以根据自己的需求进行修改和优化。
代码如下:
```html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>网易云页面设计</title>
<!-- 引入Bootstrap样式 -->
<link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.0.2/css/bootstrap.min.css">
</head>
<body>
<!-- 导航栏 -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="#">网易云</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-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">
<a class="nav-link active" aria-current="page" href="#">发现音乐</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">我的音乐</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">朋友</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">商城</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">音乐人</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">下载客户端</a>
</li>
</ul>
<form class="d-flex ms-auto">
<input class="form-control me-2" type="search" placeholder="搜索音乐、视频、歌词" aria-label="Search">
<button class="btn btn-outline-success" type="submit">搜索</button>
</form>
</div>
</div>
</nav>
<!-- 轮播图 -->
<div id="carouselExampleCaptions" class="carousel slide" data-bs-ride="carousel">
<ol class="carousel-indicators">
<li data-bs-target="#carouselExampleCaptions" data-bs-slide-to="0" class="active"></li>
<li data-bs-target="#carouselExampleCaptions" data-bs-slide-to="1"></li>
<li data-bs-target="#carouselExampleCaptions" data-bs-slide-to="2"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item active">
<img src="https://p1.music.126.net/viVWv3Q_9vKlI2Kz0tOxKw==/109951166223441594.jpg" class="d-block w-100"
alt="...">
<div class="carousel-caption d-none d-md-block">
<h5>First slide label</h5>
<p>Nulla vitae elit libero, a pharetra augue mollis interdum.</p>
</div>
</div>
<div class="carousel-item">
<img src="https://p1.music.126.net/BTJe5aDtyyE7a4lLHtRS3w==/109951166223326307.jpg" class="d-block w-100"
alt="...">
<div class="carousel-caption d-none d-md-block">
<h5>Second slide label</h5>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
</div>
<div class="carousel-item">
<img src="https://p1.music.126.net/7Yr3WkGB7u5xIvS7r3l3Dw==/109951165829942970.jpg" class="d-block w-100"
alt="...">
<div class="carousel-caption d-none d-md-block">
<h5>Third slide label</h5>
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur.</p>
</div>
</div>
</div>
<a class="carousel-control-prev" href="#carouselExampleCaptions" role="button" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleCaptions" role="button" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</a>
</div>
<!-- 歌单列表 -->
<div class="container my-5">
<h2 class="fw-bold mb-4">推荐歌单</h2>
<div class="row row-cols-1 row-cols-md-3 g-4">
<div class="col">
<div class="card h-100">
<img src="https://p2.music.126.net/A8Vv6L1O7DkXgCp2FkDlJA==/109951166105150035.jpg" class="card-img-top"
alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional
content. This content is a little bit longer.</p>
</div>
</div>
</div>
<div class="col">
<div class="card h-100">
<img src="https://p1.music.126.net/Z0GQZi5OJtvfRqGJZdO7Yw==/109951166105138429.jpg" class="card-img-top"
alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional
content. This content is a little bit longer.</p>
</div>
</div>
</div>
<div class="col">
<div class="card h-100">
<img src="https://p2.music.126.net/8QJ8y4QXm8zGK5qZBpbqWg==/109951166105125534.jpg" class="card-img-top"
alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional
content. This content is a little bit longer.</p>
</div>
</div>
</div>
</div>
</div>
<!-- 底部 -->
<footer class="bg-dark text-white p-3 text-center">
<p>© 2021 网易云音乐</p>
</footer>
<!-- 引入Bootstrap脚本 -->
<script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.0.2/js/bootstrap.min.js"></script>
</body>
</html>
```
这是一个简单的网易云页面模板,其中包括了导航栏、轮播图和歌单列表等元素。您可以根据需要对各个部分进行修改和优化,以实现您的设计效果。
阅读全文