Closed qingwatianya closed 4 years ago
//转码前 .border{ background-color:red; height: 100px; }
//转码后: style 中的width height 在编译后依然是100px 导致最终在不同设备分辨下100px 和 200rpx 不相等 这算是一个问题吗? .border { background-color: red; height: 200rpx; }
要么都在style中间设置 px 要么都在css文件中使用px 转码后是没有问题的
这个建议你到官方的Code中提交Issues https://github.com/Meituan-Dianping/mpvue
//转码前 .border{ background-color:red; height: 100px; }
//转码后: style 中的width height 在编译后依然是100px 导致最终在不同设备分辨下100px 和 200rpx 不相等 这算是一个问题吗? .border { background-color: red; height: 200rpx; }
要么都在style中间设置 px 要么都在css文件中使用px 转码后是没有问题的