簡體   English   中英

Twitter Bootstrap響應式導航(btn-navbar,圖標欄)顏色更改

[英]Twitter Bootstrap Responsive Navigation (btn-navbar, icon-bar) color changes

我正在與Bootstrap合作,專注於移動導航。 將鼠標懸停在該圖標上時(水平的三行)為灰色背景色; 但是,背景顏色僅位於圖標的中間(參見圖片)。 我不介意這種背景色,但我想放在整個圖標上,並在頂部加上圓角,因為它們在底部。 我怎樣才能做到這一點? 任何想法/建議表示贊賞。

在此處輸入圖片說明

您需要更改為圖標欄顏色,顯示為:

<span class="icon-bar"></span>

使用CSS設置您想要的顏色

.navbar-default .navbar-toggle .icon-bar {
    background-color: #fff;
}

您還可以設置按鈕的背景色。

.navbar-toggle {
    background-color: #666;
}

如果要更改焦點顏色,則只需在Bootstrap中調整:focus標簽:

.navbar-toggle:focus {

// set the new color here for focus

}

.navbar-toggle:focus .icon-bar {

// here for the 3 white Stripes

}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM