0
我看着語義的UI文檔,但無法找到我應該怎麼繼續設置下拉項目爲active
(未開通)我在頂部導航欄中,菜單,相同的常規項目。如何在Semantic-ui中將頂部導航欄上的下拉按鈕設置爲活動狀態?
的active
類是用來打開它們,而它是用來突出正常菜單鏈接。
要更改它,當我在該菜單下拉菜單的某個路徑中時,我想突出顯示它,與鏈接相同,但我不知道我應該使用哪個類。
我開始做我自己的CSS類這一點,但我敢肯定,他們有一個關鍵詞,我想檢查。
編輯:我彌補somethiong快速,測試倒置菜單,輔助或不。但是,這個問題依然存在。
.menu:not(.secondary) .dropdown.item.current{
background: rgba(255,255,255,.15);
color: #fff !important;
}
.menu:not(.secondary) .dropdown.item.current:after{
visibility: visible!important;
z-index: 100!important;
background: #3d3e3f !important;
margin: 0 !important;
box-shadow: none !important;
border: none !important;
}
.menu.inverted .dropdown.item.current{
border-color: #fff;
}