如何在Bootstrap4中正确使用固定顶部的固定头

时间:2018-06-03 08:30:44

标签: css bootstrap-4

如何在Bootstrap4中正确使用固定顶端

除了切断页面其余部分的顶部之外,它的工作原理是什么,我必须在某处设置高度或某物。我尝试了固定粘性,但是当我在手机上尝试它时,它开始显示页面上的etop但是当我进一步向下踩下时,粘性标题消失了。

<div class="fixed-top bg-light">
<div>
  <noscript>
      <h1 style="color:#FF0000;">
          This reportFile will not be navigable without Javascript, please enabled Javascript
      </h1>
  </noscript>
  <img srcset="style/songkongheader.png 400w,style/songkongheader-medium.png 200w,style/songkongheader-small.png 100w," sizes="(max-width:800px) 200px,(max-width:600px) 100px,400px" class="mb-2">
</div>
<header>
  <h2 class="subheading" title="Start Fixing Songs">
      <a class="mx-2">
          Fix Songs
      </a>
  </h2>
</header>
</div>

0 个答案:

没有答案