admin管理员组文章数量:1331443
do the following change for css but not able to change font size
set style
font-size: 16px;
and also set css class
.x-btn{
font:normal 18px tahoma, verdana, helvetica;
}
.x-btn button{
font:normal 18px arial,tahoma,verdana,helvetica;
color:#333;
}
.x-btn em {
font-style:normal;
font-weight:normal;
}
help me to change font size in Extjs Button
do the following change for css but not able to change font size
set style
font-size: 16px;
and also set css class
.x-btn{
font:normal 18px tahoma, verdana, helvetica;
}
.x-btn button{
font:normal 18px arial,tahoma,verdana,helvetica;
color:#333;
}
.x-btn em {
font-style:normal;
font-weight:normal;
}
help me to change font size in Extjs Button
Share Improve this question asked Sep 14, 2011 at 8:53 jayeshjayesh 2,4927 gold badges44 silver badges80 bronze badges 1- Is there any way to change the style through javascript? – CodZilla Commented Jan 13, 2017 at 11:02
2 Answers
Reset to default 3.x-btn-default-small .x-btn-inner {
font-size: 16px;
}
This works for me in extjs 4.0.2
It depends upon the button's configuration. For example if you declared
{ xtype: 'button', textAlign: 'bottom', iconAlign: 'top' ... }
you will have to set css as follow:
.x-btn-bottom .x-btn-inner {
font-size: 9px;
font-weight: bold
}
You have to inspect css of your button at runtime for example using firebug. You will see css class to overwrite
本文标签: javascriptchange button font size in Extjs 4Stack Overflow
版权声明:本文标题:javascript - change button font size in Extjs 4 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742237929a2438418.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论