rem和em单位的实际区别 [英] Practical difference between rem and em units
本文介绍了rem和em单位的实际区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为什么你会使用over?我知道有资源可以解释'差异',但是什么是一个实际的例子,在这个例子中,rem会比使用em更好? 是相对于字体 - 其直接或最近的父级的大小, 这是我能找到的关于这个主题的最详细的解释。 https://j.eremy.net/confused-about-rem-and- em / Why would you use one over the over? I know there are resources explaining the 'difference' but what is a practical example where rem would be preferable to use over em? And visa versa. While em is relative to the font-size of its direct or nearest parent,
rem is only relative to the html (root) font-size. This is the most detailed explanation I could find on this topic. https://j.eremy.net/confused-about-rem-and-em/ 这篇关于rem和em单位的实际区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
rem 仅与html(根)字体大小有关。
解决方案
查看全文