问题
I've found many suggestions on using different font-sizes and measure units for websites. Most of them suggest to define body font-size in % (100.1%) and use em for the rest part. I realize this is very useful for preserving the proportions while zooming in and out, especially for older browsers. But today most of the web browsers can constrain the proportions of website elements even for the fixed sized elements.
So should we still use % and em or we can use pixels?
Thank you.
回答1:
I still suggest using em when you are assigning font sizes. You're right about the newer browsers zooming in, but not everyone upgrades their browser, and accommodating the visually impaired is always a good thing.
回答2:
Internet Explorer 6 ( and 7? ) can't properly zoom for pixels so I would still rely on %/ems.
来源:https://stackoverflow.com/questions/1890970/should-we-still-use-em-and-for-defining-the-font-size-of-the-website-elements