关于REM的问题_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 08:49:29
Original
915 people have browsed it

请教一个问题
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;}
这两个还是有区别的,建议不同分辨率设备看一下,不同浏览器看一下,不同平台看一下。
比如:三星各个大小的,苹果各个大小的,小米各种大小的屏幕。

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template