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.98k stars 401 forks source link

能请教下怎么写的吗 #143

Closed Yahuizhang closed 1 year ago

Yahuizhang commented 1 year ago

我不用vw了,改成自动转换rem了。。。 然后在写个媒体查询

Originally posted by @frank-pian in https://github.com/evrone/postcss-px-to-viewport/issues/130#issuecomment-1110105428

wswmsword commented 1 year ago

试一下我最近写的插件,在 postcss-px-to-viewport 前使用,会自动插入媒体查询,会限制 vw 的最大宽度。

https://github.com/wswmsword/postcss-mobile-forever