Navbar Fixed Top

Navbar Fixed Top

解法

提醒:若當有一天 navbar-fixed-top 改使用 navbar-static-top 時需移除。

body {
    padding-top: 50px; 
}

原因

// Fix the top/bottom navbars when screen real estate supports it
.navbar-fixed-top,
.navbar-fixed-bottom {
  position: fixed;
  right: 0;
  left: 0;
  z-index: @zindex-navbar-fixed;

  // Undo the rounded corners
  @media (min-width: @grid-float-breakpoint) {
    border-radius: 0;
  }
}

CSS position

static

absolute

fixed

relative

initial

inherit

延伸閱讀

results for ""

    No results matching ""