taro3.6默认模板,按照文档使用postcss-rem-to-responsive-pixel,会导致h5的px转为rpx,样式不生效
mudssky opened this issue · comments
mudssky commented
描述这个Bug
A clear and concise description of what the bug is.
代码url
可提供转化失败的 wxml
,js
,wxss
这类的产物,
可以直接复制粘贴在此处,或者提供 url
如何重现
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
期望行为(可选)
A clear and concise description of what you expected to happen.
屏幕截图(可选)
If applicable, add screenshots to help explain your problem.
运行环境
- OS: [e.g. iOS]
- Nodejs: 16x
- Framework: uni-app/taro/remax/rax
Additional context
Add any other context about the problem here.
mudssky commented
我又装了tailwindcss-rem2px-preset这个插件,配置后在h5和微信小程序都是正常的。
之后我注释掉切回去想复现问题截图,发现又正常了,没有复现出来