Inadvertently found that, for the same HTML markup, the CSS in the same time when the font and Line-height attributes, you have to be careful, the two are written in a different order, resulting in a difference in the display effect.
That
>>> If you write the font first, then write Line-height, the display effect is normal
>>> If you first write line-height, then write the font, then the line-height definition of the effect will be lost, in IE, Firefox, opera under the occurrence of this bug
For specific results, see the following code:
H1:
Iecn.net-Focus on web technology, experience development fun!
Iecn.net-Focus on web technology, experience development fun!
Div:
Iecn.net-Focus on web technology, experience development fun!
Iecn.net-Focus on web technology, experience development fun!
Original: http://www.cnlei.org/blog/article.asp?id=343
Note: Read the Maple rock message, to check the next CSS Help document
Reference
The definition parameters for the font must be arranged in the following order. Only one value is allowed per parameter. Ignores the default value of the standalone property that corresponds to its argument:
Font:font-style | | Font-variant | | Font-weight | | Font-size | | Line-height | | Font-family
Example: p {font:italic small-caps 12pts/18pts Arial;}
Author: ztu http://www.dnew.cn/post/217.htm#topreply