-
Notifications
You must be signed in to change notification settings - Fork 254
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? #101
Comments
为啥要用rem? |
缩放 |
用px会自动转成rpx和rem,还不用手动算 |
@hxlniada tailwindcss 的默认主题只有 rem,改成 px 非常麻烦。另外,为什么用 rem 和能不能用 rem 是两个问题,这个 issue 只针对于文档「关于能不能用」有没有出错。 |
@agileago 谢谢留言,既然小程序支持 rem,就没要转成 px。 |
不是,你最好使用统一的,然后通过框架自动转换,减少心智负担 |
抱歉冒昧,我目前不是taro的用户(接触过小程序开发),从tailwind那边好奇点进来,但看到这里想交流一下看法 在我看来不同单位的存在是有其道理的:
个人浅见(理想情况下):
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
据我所知微信小程序和字节小程序都是支持 rem 的,为啥文档上写不支持呢?
https://docs.taro.zone/docs/use-h5#%E4%B8%8D%E6%94%AF%E6%8C%81%E4%BD%BF%E7%94%A8-rem
https://developers.weixin.qq.com/community/develop/doc/0006c07d3ec3a8e8236b484ba56000
The text was updated successfully, but these errors were encountered: