evrone / postcss-px-to-viewport

A plugin for PostCSS that generates viewport units (vw, vh, vmin, vmax) from pixel units. The best choice to create a scalable interface on different displays by one design size.
https://evrone.com/postcss-px-viewport
MIT License
2.99k stars 401 forks source link

# vue /deep/ 情况下vw转换错误 #39

Closed zhangyanan0525 closed 4 years ago

zhangyanan0525 commented 4 years ago

version 0.0.3

插件配置

image

代码截图

image

实际展示

image image

.headerBar和.cube-tab-bar都是设置height:88px,但是转换成了不同的vw

zhangyanan0525 commented 4 years ago

sorry,发现是设计稿大小不同导致的。