我看到一些线程试图回答,但我没有看到明确的解决方案,至少有一个我能理解如何实施。
有没有办法轻松更改XPage中的dojo字段的css?在这种情况下,我是一个Dojo货币文本框。
<xe:djCurrencyTextBox id="I_H2"
value="#{document1.I_H2}" style="width:60px;">
<xe:this.converter>
<xp:convertNumber type="currency"></xp:convertNumber>
</xe:this.converter>
</xe:djCurrencyTextBox>
我已经阅读了如何直接将样式应用于它,因为它受主题控制,并且包含在其他div和span标签中(尽管它接受宽度) ),但肯定有一个简单的方法来调整场的背景颜色和其他特征?
答案 0 :(得分:0)
I have experienced this issue in XPages before. To prevent your styles from being overwritten add "!important
" after them. Note that CSS purists frown on this approach, but it does work.
I have not had much success with disabling a theme, but you can try that if you haven't already.
This blog post I wrote, explains more about the use of "!important
" and I think will help you: http://notesspeak.blogspot.com/2014/10/quick-tip-forcing-css-override.html