2016-11-07 98 views
0

嘿,我正在使用Rdash Angular Js。是否有可能修復頁面滾動頁眉的位置。固定在頁面滾動的標題位置在Rdash Angular

我試了一下CSS如下,但它沒有爲我工作。在你的代碼泛

.row.header{height:60px;background:#fff;margin-bottom:15px;top: 0;position: fixed;left: 250px;right: 0;z-index: 1030;color:#aaa;} 
+1

嗨,你使用正確的'position:fixed',也許問題出在班上。無論如何,你需要更好地解釋你的問題。如果您可以在snipper中發佈html,將會更輕鬆地回答您。 –

+0

嗨我創建了片段[rdash-snippet](http://codepen.io/AhsanMughal/pen/NbPEQa)標題位置不固定在滾動。儀表板的原始來源是[rdash-angular](http:// rdash.github.io/#/)。有沒有辦法讓標頭默認被修復。 –

+0

@Ahsan穆斯塔法:請你參考我的回答? – Jigar7521

回答

0

改變這一點:

.row.header { 
    height: 60px; 
    background: #fff; 
    margin-bottom: 15px; 
    position: fixed; 
    width: 100%; 
} 

或者

你能請點擊此鏈接,讓做你的事情,我已經給出關於這在過去的一個答案:Relevent answer

或者你可以關注這個鏈接瞭解其他可替代選項:Other solution