ivanlee93 / mpvue-cli

对mpvue官方quick-start的模版进行优化改造,更新
41 stars 3 forks source link

px2rpx 转码css中的px 与 style="width:100px"未被转码 导致大小设置在不同分辨率设备下 出现不一致的 #3

Closed qingwatianya closed 4 years ago

qingwatianya commented 5 years ago
sdfsdf

//转码前 .border{ background-color:red; height: 100px; }

//转码后: style 中的width height 在编译后依然是100px 导致最终在不同设备分辨下100px 和 200rpx 不相等 这算是一个问题吗? .border { background-color: red; height: 200rpx; }

要么都在style中间设置 px 要么都在css文件中使用px 转码后是没有问题的

qingwatianya commented 5 years ago

image

image

image

ivanlee93 commented 5 years ago

这个建议你到官方的Code中提交Issues https://github.com/Meituan-Dianping/mpvue