Skip to content

angular12 有没有适配rem的插件?在网上能找到的最高级的目前只有11的 #171

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

Open
731514100 opened this issue Aug 10, 2021 · 2 comments
Labels
请补充 问题无效,需要改进提问方式

Comments

@731514100
Copy link

angular12 有没有适配rem的插件(移动端像素大小适配)?在网上能找到的最高级的目前只有11的。

@wszgrcy wszgrcy added the 请补充 问题无效,需要改进提问方式 label Aug 10, 2021
@HCenggel
Copy link

HCenggel commented Dec 3, 2021

直接在index.html写适配的js就可以了。
js代码谷歌一下

rem只不过是改变了html上的font-size而已

@wszgrcy
Copy link
Collaborator

wszgrcy commented Dec 3, 2021

使用webpack5的插件就可以,通过
https://www.npmjs.com/package/@angular-builders/custom-webpack
如果没有webpack5的插件支持,那么很遗憾应该也不可以

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
请补充 问题无效,需要改进提问方式
Projects
None yet
Development

No branches or pull requests

3 participants