html网页制作——蛋糕bootstrap响应式网站html+css+javascript+jquery+bootstarp
以下是一个简单的使用Bootstrap创建的响应式网页,用于展示一个静态的蛋糕信息。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simple Cake Website</title>
<!-- 引入Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="#">Cake Shop</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 ml-auto">
<li class="nav-item">
<a class="nav-link" href="#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Contact</a>
</li>
</ul>
</div>
</nav>
</header>
<main role="main" class="container">
<div class="starter-template">
<h1>Delicious Cake</h1>
<p class="lead">Our special cake is made with love and fresh ingredients.</p>
<img src="cake.jpg" alt="Cake" class="img-fluid">
<div class="mt-4">
<h2>Cake Details</h2>
<ul>
<li>Ingredients: Butter, Flour, Eggs, etc.</li>
<li>Allergen Info: None</li>
<li>Calories: 1000</li>
</ul>
</div>
</div>
</main>
<footer class="footer">
<div class="container">
<span class="text-muted">Copyright © 2021 Cake Shop</span>
</div>
</footer>
<!-- 引入jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"></script>
<script
评论已关闭