开发者

explanation for font: bold 12px/25px "Arial"; [duplicate]

开发者 https://www.devze.com 2023-03-08 23:51 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: What does this size mean in css {font: 14px/24px Arial, Helvetica, sans-serif}
This question already has answers here: Closed 11 years ago.

Possible Duplicate:

What does this size mean in css {font: 14px/24px Arial, Helvetica, sans-serif}

i see around the website there is CSS like this

 .selector {font: bold 12px开发者_如何学JAVA/25px "Arial";}

i understand bold mean font-weight and "Arial" is Font-family.

but what about 12px/25px ?

can someone please explain what is that mean?

thank you in advance,

GusDe


The two figures in 12px/25px represent font-size and line-height.

This is the standard short-hand notation for the font style. See here for a breakdown of all possible options: http://www.impressivewebs.com/css-font-shorthand-property-cheat-sheet/


The part before the slash is the fontsize and the part after it the line height.

See the docs here:

http://www.w3.org/TR/CSS2/fonts.html#font-shorthand

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号