extjs中文字体在firefox和Adobe Air里显示偏小的问题

http://www.cnblogs.com/meetrice/category/137349.html

解决方法是再创建一个名为ext-patch.css的css文件,
内容如下:





/* --------------- ޸ Ext CSS -------------- */
/* Ext 2.0 */
.x-window-footer {
position: relative;
top: 0;
right: 0;
}
.x-tab-strip SPAN.x-tab-strip-text {
font-size: 12px;
}
.x-panel-header {
font-size: 12px;
}
.x-tree-node {
font-size: 12px;
}
.x-grid3-hd-row TD {
font-size: 12px;
}
.x-grid3-row TD {
font-size: 12px;
LINE-HEIGHT: 16px;
}
.x-tip .x-tip-bd {
font-size: 12px;
}
.x-tip h3{
font-size: 12px;
}
.x-tip .x-tip-bd-inner{
font-size:12px;
}
.x-panel-tl .x-panel-header {
FONT: normal 12px tahoma,arial,verdana,sans-serif;
}
.x-form-field {
FONT: 12px tahoma,arial,helvetica,sans-serif
}
.x-small-editor .x-form-field {
FONT: 12px tahoma,arial,helvetica,sans-serif
}
.x-combo-list-item {
FONT: 12px tahoma,arial,helvetica,sans-serif;
}
.x-menu-list-item {
FONT: 12px tahoma,arial,sans-serif;
}
.x-window-tl .x-window-header {
FONT: bold 12px tahoma,arial,verdana,sans-serif;
}
.x-layout-split-west .x-layout-mini {
BACKGROUND-IMAGE: url(../images/mini-left.jpg);
}
.ext-ie .x-form-text {
margin-top:1px;
} /* the textField missing bottom line */
.x-form-item {
FONT: 12px tahoma,arial,helvetica,sans-serif
}
.x-grid-group-hd DIV {
FONT: bold 12px tahoma,arial,helvetica,sans-serif;
}

..x-btn-text-icon .x-btn-center .x-btn-text {ext-all.css (line 227)
background-position:0pt 2px;
background-repeat:no-repeat;
padding:3px 0pt 2px 18px;
}
.ext-gecko .x-btn button {ext-all.css (line 222)
padding-left:0pt;
padding-right:0pt;
}
.x-btn button{
font-size:12px;
}

/* END */





把这个css文件引入到页面中即可。

0 0 0
(请您对文章做出评价)
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值