The CSS code writing sequence of font and line-height is different, which leads to different display effects. When the font and line-height attributes are applied to the same HTML Tag, you have to be careful. The writing sequence of the two is different, which may lead to different display effects.
That is:
>>> If you write font first and then line-height, the result is normal.
>>> If line-height is first written and font is written, the effect of line-height definition will be lost. This BUG occurs in IE, Firefox, and Opera.
For more information, see the following code:
H1:
IECN. Net-Focus on Web technology and experience development!
IECN. Net-Focus on Web technology and experience development!
P:
IECN. Net-Focus on Web technology and experience development!
IECN. Net-Focus on Web technology and experience development!
Http://www.cnlei.org/blog/article.asp? Id = 343
Note: I read fengyan's message and checked the CSS help document.
Reference
The parameters defined for font must be arranged in the following order. Each parameter can have only one value. If this parameter is ignored, the default value of the independent attribute corresponding to the parameter is used:
Font: font-style | font-variant | font-weight | font-size | line-height | font-family
Example: p {font: italic small-caps 600 12pts/18pts ;}
Author: ztu http://www.dnew.cn/post/217.htm#topreply