下面是一个带有引导程序 4 的 Html 代码。它有一个固定的页眉和页脚,中间有可滚动的引导卡。滚动时,一些卡片隐藏了标题。如何使卡片在标题“后面”滚动?
<header style="position: fixed; left: 0; top: 0; width: 100%;" class="bg-info text-center">header</header>
<br><br>
<div class="container">
<div class="card">
<div class="container"> <h2>My Card</h2> </div>
</div>
<p>simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text </p>
<div class="card">
<div class="container"> <h2>My Card</h2> </div>
</div>
<p>simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text </p>
<div class="card">
<div class="container"> <h2>My Card</h2> </div>
</div>
<p>simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text </p>
<div class="card">
<div class="container"> <h2>My Card</h2> </div>
</div>
<p>simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text </p>
<div class="card">
<div class="container"> <h2>My Card</h2> </div>
</div>
<p>simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text </p>
<div class="card">
<div class="container"> <h2>My Card</h2> </div>
</div>
<p>simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text </p>
<div class="card">
<div class="container"> <h2>My Card</h2> </div>
</div>
<p>simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text </p>
<div class="card">
<div class="container"> <h2>My Card</h2> </div>
</div>
<p>simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text </p>
<div class="card">
<div class="container"> <h2>My Card</h2> </div>
</div>
<p>simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text </p>
<div class="card">
<div class="container"> <h2>My Card</h2> </div>
</div>
<p>simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text </p>
<div class="card">
<div class="container"> <h2>My Card</h2> </div>
</div>
<p>simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text </p>
</div>
<p>simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text </p>
</div>
<div class="card">
<div class="container"> <h2>My Card</h2> </div>
</div>
<p>simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text simple text </p>
</div>
<footer style="position: fixed; left:0; bottom:0; width:100%;" class="bg-info text-center">footer</footer>