Angular-UI Tabs: add class to a specific tab

后端 未结 5 1332
鱼传尺愫
鱼传尺愫 2021-02-08 13:32

I want to create the following tabs with Angular UI:


(source: gyazo.com)

So, I\'m adding the styles based on Bootstap\'s class names/markup:

5条回答
  •  爱一瞬间的悲伤
    2021-02-08 13:46

    Try adding an id to the DIV surrounding the tabs and then make your styles based on that. For example

    .....

    And here is a style that makes the active tab a different color

    #myTabs div li.active a {
      background-color: lightsteelblue;
    }
    

提交回复
热议问题