开发者

what is the difference between css font size using em and percentage? [duplicate]

This question already has answers here: Closed 12 years ago.

Possible Duplicate:

Font size in CSS - % or em?

well i was trying to understand the different sizing options in css and i got lost between ems and percentage.

they seems to be the same i mean 1em = 150% and 1.5em = 150%.

and they do cascade too fr开发者_Python百科om parent elements.

am i missing something?


i think this site may help with your question

http://kyleschaeffer.com/best-practices/css-font-size-em-vs-px-vs-pt-vs/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜