如何在给定条件下更改xpage中dojo选项卡容器的dojo选项卡窗格的颜色标题?谁能给我一个关于如何改变标签颜色的路线图?
答案 0 :(得分:0)
您可以这样做,并根据您的情况隐藏样式面板
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core" xmlns:xe="http://www.ibm.com/xsp/coreex">
<xp:panel tagName="style">
div.dijitTab:nth-child(1){background-color:red !important}
</xp:panel>
<xp:panel style="padding:30px">
<xe:djTabContainer id="djTabContainer1">
<xe:djTabPane id="djTabPane1" title="Tab1">1</xe:djTabPane>
<xe:djTabPane id="djTabPane2" title="Tab2">2</xe:djTabPane>
</xe:djTabContainer>
</xp:panel>
</xp:view>