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
3.04k stars 406 forks source link

Height has been converted to `vw`. How do I convert height to `vh`? height 都转换成vw了,请问如何将height转换成vh #35

Closed zhangyq233 closed 4 years ago

zhangyq233 commented 5 years ago

height 都转换成vw了,请问如何将height转换成vh

msidolphin commented 5 years ago

viewportUnit, fontViewportUnit

KODerFunk commented 5 years ago

@zhangyq233 Also, maybe you can try options landscape, landscapeUnit, landscapeWidth for scaling configuration of horizontal orientation.

ShawLyon commented 5 years ago

@zhangyq233 Also, maybe you can try options landscape, landscapeUnit, landscapeWidth for scaling configuration of horizontal orientation.

非常棒

KODerFunk commented 4 years ago

Related issues: #16, #28, #32, #38.