designWidth设置为375的时候,h和w的结果不正确
zyronon opened this issue · 4 comments
zyronon commented
默认为750,我想显示高30px,那么需要写h-60
如果为375,我想显示高30px,只需要写h-30就行了
但此时,h-30的结果并不是30px,而是15px
现在凑合用750,现在写都要 x2 来写h和w😥😥
MellowCo commented
小程序就是按照 750 rpx的
MellowCo commented
只有 taro 有调整尺寸标准,uniapp没有这个配置
/**
* taro h5 rem 换算尺寸标准
* @default 750
* @link https://taro-docs.jd.com/taro/docs/size
*/
designWidth?: number
/**
* taro 设计稿尺寸换算规则
* @default { 640: 2.34 / 2, 750: 1, 828: 1.81 / 2}
* @link https://taro-docs.jd.com/taro/docs/size
*/
deviceRatio?: Record<number, number>
MellowCo commented
750的标准,你可以去微信社区反馈
zyronon commented
好的