<分区>
在我的编码中,我在 Bootstrap v3.3.7 中看到类 navbar-fixed-top。 为什么 z-index = 1030?
最佳答案
使用 z-index 的目的是为了移动 z 轴上的内容。由于您使用的是 navbar-fixed-top 类,标题将始终固定在页面顶部。但是向下滚动页面会隐藏标题。为了滚动标题下方的页面内容,使用了 z-index。
关于css - 为什么 Bootstrap 的类 navbar-fixed-top z-index=1030?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45790310/