-
18 Feb 2012 11:41 PM #1
[SOLVED] How can I change the style of a label or field?
[SOLVED] How can I change the style of a label or field?
I think to use fieldStyle or labelStyle,
but I don't know how to set them.
Please teach me the detailed setting method.
-
19 Feb 2012 3:13 AM #2
I made it!
I made it!
The method was found!
What was necessary was just to only have set to fieldStyle or labelStyle with "background-color:red;font-size:18px".
That's all!
-
20 Feb 2012 7:34 AM #3
That's one way to do it or you could also add an additional css class to the field and then style it via css.
Aaron Conran
@aconran
Sencha Architect Development Team
-
20 Feb 2012 7:54 AM #4
Thanks a lot!
Can the font size of a button-text or combo-box item also be changed by CSS?
I tried them but could not change,but only background color.
What is bad?
Code is
-------------------------------
{
xtype:'button',
cls:'x-btn-inner',
.
.
}
{
xtype:'combobox',
cls :'x-combo-list-item',
.
.
}
css is
.x-btn-inner {
background:lightgray;
font-size: 18px !important;
font-weight: bold !important;
color: red;
}
.my-combo-lst .x-combo-list-item{
font-size:48px;
color:red;
}
Best regards,
K.kitamura.
-
20 Feb 2012 8:13 AM #5
Yes, they can be changed with CSS. Ensure that the rules are affecting the proper elements and have the right amount of specificity.
Aaron Conran
@aconran
Sencha Architect Development Team
-
20 Feb 2012 8:50 PM #6


Reply With Quote