CSS字体大小 - 使用“/” [英] CSS Font Sizing - Using "/"
本文介绍了CSS字体大小 - 使用“/”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我看过在主体上指定的 font-size:12px / 2em
(或类似网站)的网站。
I've seen sites with font-size:12px/2em
(or similar) specified on the body.
这个字体大小是做什么的?
What does this font sizing do exactly?
推荐答案
这是一个设置font-size(12px)线高(2em)。虽然,我不认为你可以在 font-size
属性,只有在 font
属性。
It's a shorthand for setting the font-size (12px) and the line-height (2em). Though, I didn't think you could do it on the font-size
property, only on the font
property.
这篇关于CSS字体大小 - 使用“/”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文