【发布时间】:2018-06-20 00:43:50
【问题描述】:
我有嵌套的水平子菜单。我无法更改活动太阳菜单选项卡的颜色。 The first tab is color blue so when the tab is active it is changed to red.然后,当单击子菜单时,活动的子菜单应变为灰色,因此其内容。我在下面附上了 jsfiddle 链接 https://jsfiddle.net/vgjcrpud/4/
我尝试使用它的 id 访问特定的导航选项卡,但没有成功。
<style>
.nav-tabs #submenu li.active{
background-color: #f2f2f2;
}
</style>
【问题讨论】: