bootstrap写的产品详情页
<!DOCTYPE html><html>
<head>
<title>商品详情</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.
<link rel="stylesheet" href="css/index.css" />
<script src="https://cdn.
<script src="https://cdn.
<script src="https://cdn.
</head>
<style>
body {
position: relative;
}
</style>
<body data-spy="scroll" data-target=".navbar" data-offset="50">
<nav class="navbar navbar-dark fixed-top"id="navbar-example2">
<a class="navbar-brand"href="index.html"><
</a>
<ul class="nav nav-pills">
<li class="nav-item">
<a class="nav-link" href="#section1">宝贝预览</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#section2">商品介绍</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#section41">物流信息</a>
</li>
</ul>
</nav>
<div id="section1" class="container-fluid bg-light" style="padding-top:70px;padding-bottom:70px">
<h1>宝贝预览</h1>
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at the navigation bar while scrolling!</p>
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at the navigation bar while scrolling!</p>
</div>
<div id="section2" class="container-fluid bg-light" style="padding-top:70px;padding-bottom:70px">
<h1>商品介绍</h1>
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at the navigation bar while scrolling!</p>
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at the navigation bar while scrolling!</p>
</div>
<div id="section41" class="container-fluid bg-light" style="padding-top:70px;padding-bottom:70px">
<h1>物流信息</h1>
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at the navigation bar while scrolling!</p>
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at the navigation bar while scrolling!</p>
</div>
</body>
</html>
[此贴子已经被作者于2020-11-23 19:57编辑过]