Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rem 使用分析 #2

Open
macsen110 opened this issue Dec 24, 2014 · 0 comments
Open

rem 使用分析 #2

macsen110 opened this issue Dec 24, 2014 · 0 comments

Comments

@macsen110
Copy link
Owner

macsen110 commented Dec 24, 2014

chrome 下用到rem

chrome下面默认最小的字体12px,

当检测到根目录html的font-size:X%,font-size转化为Mpx,当M<12时,chrome最小值为12px,

icon width:rem,便以最小值为基准,不再变化.

在body下定义样式font-size指的就是子元素的font-size属性,跟width,height属性无关

移动设备上面可以正常比例缩小字体

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant