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布局 #1094

Open
racheljoin opened this issue Feb 8, 2024 · 1 comment
Open

子应用rem布局 #1094

racheljoin opened this issue Feb 8, 2024 · 1 comment
Labels
common common question

Comments

@racheljoin
Copy link

我子应用用了rem,动态设置了html的font-size,设置到了全局(父应用)的html上了,导致父应用的全局字体有问题,这个有什么好的解决办法吗

@bailicangdu
Copy link
Contributor

html全局唯一,子应用的rem要生效必须修改html的font-size,导致主应用受影响。没有特别好的解决方式,推荐使用vw

@bailicangdu bailicangdu added the common common question label Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
common common question
Projects
None yet
Development

No branches or pull requests

2 participants