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

[css] 第247天 rem是如何实现自适应布局的? #1666

Open
haizhilin2013 opened this issue Dec 18, 2019 · 1 comment
Open

[css] 第247天 rem是如何实现自适应布局的? #1666

haizhilin2013 opened this issue Dec 18, 2019 · 1 comment
Labels
css css

Comments

@haizhilin2013
Copy link
Collaborator

第247天 rem是如何实现自适应布局的?

我也要出题

@haizhilin2013 haizhilin2013 added the css css label Dec 18, 2019
@testplm
Copy link

testplm commented Dec 19, 2019

其大小与设置的html根大小相对
通过js获取当前页面的宽度,动态的调整
html{
font-size: 5px;
}
来改变整个页面对应的字体大小

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

No branches or pull requests

2 participants