六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 35|回复: 0

ExtJs在firefox 中文字体太小的解决方案

[复制链接]

升级  52%

36

主题

36

主题

36

主题

秀才

Rank: 2

积分
128
 楼主| 发表于 2013-1-29 07:40:50 | 显示全部楼层 |阅读模式
firefox 中文字体太小的解决方案

    解决办法其实很简单,就是将所有的默认字体改为13px.使用方法:
在引用ext的css后面再加上引用 ext-patch.css 即可.
(当然你也可以把它加在引用ext的css文件最后.)
ext-patch.css
 
   1. /* --------------- 修改 Ext CSS -------------- */     2. /* Ext 2.0 */     3. .x-window-footer {     4.     position: relative;     5.     top: 0;     6.     right: 0;     7. }     8. .x-tab-strip SPAN.x-tab-strip-text  {     9.     font-size: 13px;    10. }    11. .x-panel-header {    12.     font-size: 13px;    13. }    14. .x-tree-node {    15.     font-size: 13px;    16. }    17. .x-grid3-hd-row TD {    18.     font-size: 13px;    19. }    20. .x-grid3-row TD {    21.     font-size: 13px;    22.     LINE-HEIGHT: 18px;    23. }    24. .x-tip .x-tip-bd {    25.     font-size: 13px;    26. }    27. .x-tip h3{    28.     font-size: 13px;    29. }    30. .x-tip .x-tip-bd-inner{    31.     font-size:13px;    32. }    33. .x-panel-tl .x-panel-header {    34.     FONT: normal 13px tahoma,arial,verdana,sans-serif;    35. }    36. .x-form-field {    37.     FONT: 13px tahoma,arial,helvetica,sans-serif        38. }    39. .x-small-editor .x-form-field {    40.     FONT: 13px tahoma,arial,helvetica,sans-serif        41. }    42. .x-combo-list-item {    43.     FONT: 13px tahoma,arial,helvetica,sans-serif;       44. }       45. .x-menu-list-item {    46.     FONT: 13px tahoma,arial,sans-serif;    47. }    48. .x-window-tl .x-window-header {    49.     FONT: bold 13px tahoma,arial,verdana,sans-serif;        50. }    51. .x-layout-split-west .x-layout-mini {       52.     BACKGROUND-IMAGE: url(../images/mini-left.jpg);     53. }    54. .ext-ie .x-form-text {    55.     margin-top:1px;    56. } /* the textField missing bottom line */    57. .x-form-item {      58.     FONT: 13px tahoma,arial,helvetica,sans-serif    59. }    60. .x-grid-group-hd DIV {      61.     FONT: bold 13px tahoma,arial,helvetica,sans-serif;    62. }    63.     64. /*按钮字体大小 Add by extjs.org.cn */    65. .x-btn-text{    66.     font: 12px tahoma,arial,sans-serif;    67. }    68.     69. /* END */
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表