2017-06-08 4 views
2

GXTテキストエリアのデフォルトフォントファミリを変更できません。私はStyleInjectorとCSSを使ってみました。しかし、それは更新されていません。手伝ってくれませんか? GXTテキストエリアでフォントファミリを変更できません

TextArea textArea = new TextArea(); 
textArea.setStyleName("gxtTextArea"); 

とCSSファイルで、私は次のように与えている

.gxtTextArea { 
    font-family: Arial !important; 
    /* color: red !important; 
    font-size: 24px !important; 
    font-style: bold !important;   
    font-weight: bold !important; */ 
} 
+0

フィドルを提供できるのであれば、私はあなたが助けることができると確信しています;) –

+0

どのバージョンのGXTを使用していますか? –

答えて

2

またaddStyleNameの代わりsetStyleNameを使用することができます。

TextArea textArea = new TextArea(); 
textArea.addStyleName("gxtTextArea"); 

そして、CSS側では以下のように変更してください。

.gxtTextArea * { 
    font-family: Arial !important; 
    /* color: red !important; 
    font-size: 24px !important; 
    font-style: bold !important;   
    font-weight: bold !important; */ 
} 
関連する問題