我们还应该使用em和%来定义网站元素的字体大小吗? [英] Should we still use em and % for defining the font-size of the website elements?
问题描述
谢谢。
正在分配字体大小。你是对的新的浏览器放大,但不是每个人都升级他们的浏览器,并容纳视力受损总是一件好事情。
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.
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.
这篇关于我们还应该使用em和%来定义网站元素的字体大小吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!