is font/text sizing in % more accessible and manag

2019-08-28 12:41发布

问题:

Both article are proving this.

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

http://www.maxdesign.com.au/presentation/relative/

I want to know SO users view?

回答1:

The only differences between % and 100 * em (for setting font size) is that there are a few browser bugs relating to the use of em units (which can be worked around with an explicit body { font-size: 100%; } and then using em units thereafter.)

The kyleschaeffer article is, frankly, rubbish. It leaves out half the facts.

The maxdesign is decent, but shows its age. It was written in '03, and the bugs it talks about are in Opera 6 and Netscape 4 — both of which are obsolete.