---
title: "网站在IE和Firefox中的字体显示问题"
author: "wangleide414"
date: "2009-11-15T22:53:04Z"
tags: []
slug: "ie-firefox"
draft: false
lastmod: "2009-11-15T23:04:26Z"
id: 517783
url: "https://wangleide414.iteye.com/blog/517783"
---

最近用Ext做了个小网站，在IE里显示的很好，字体都正常，但是用firefox运行的时候，字体特别小，而且不清楚，十分模糊，不知道什么原因，最后在网上找到了解决方案。

 

引入css:

.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;  
}  
.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;  
}

 

在每次引入即可。