Home  >  Article  >  Web Front-end  >  关于REM的问题_html/css_WEB-ITnose

关于REM的问题_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 08:49:29876browse

请教一个问题
html{font-size:62.5%}
p{font-size:2rem}和p{font-size:20px;}没有区别,但是我为什么还要用rem呢?rem的意义在哪里?难道是根据屏幕尺寸的分辨率吗?


回复讨论(解决方案)

https://github.com/amfe/article/issues/17
建议看上面的文章,仔细阅读一二遍。
然后:
p{font-size:2rem}和p{font-size:20px;}
这两个还是有区别的,建议不同分辨率设备看一下,不同浏览器看一下,不同平台看一下。
比如:三星各个大小的,苹果各个大小的,小米各种大小的屏幕。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn