chieffancypants 加载栏位置
chieffancypants loading bar position
在 angular js 应用程序中,我正在使用 chieffancypants loading bar
我正在使用 bootstrap 3.3.5 navbar-fixed-top。我想在导航栏下方显示加载栏,加载栏默认位于页面顶部。
我试图覆盖 CSS 中的顶部位置,如下所示,但它不起作用。
#loading-bar .bar {
-webkit-transition: width 350ms;
-moz-transition: width 350ms;
-o-transition: width 350ms;
transition: width 350ms;
background: #29d;
position: fixed;
z-index: 2000;
top: 60;
left: 0;
width: 100%;
height: 2px;
}
顶部值缺失 px
,因此:
top: 60
应该是 top: 60px
在 angular js 应用程序中,我正在使用 chieffancypants loading bar
我正在使用 bootstrap 3.3.5 navbar-fixed-top。我想在导航栏下方显示加载栏,加载栏默认位于页面顶部。 我试图覆盖 CSS 中的顶部位置,如下所示,但它不起作用。
#loading-bar .bar {
-webkit-transition: width 350ms;
-moz-transition: width 350ms;
-o-transition: width 350ms;
transition: width 350ms;
background: #29d;
position: fixed;
z-index: 2000;
top: 60;
left: 0;
width: 100%;
height: 2px;
}
顶部值缺失 px
,因此:
top: 60
应该是 top: 60px