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

怎么动态设置viewportWidth的值? #95

Open Wuou opened 3 years ago

Wuou commented 3 years ago

怎么动态设置viewportWidth的值?我想实现微信调整字体大小的那种效果,通过改变rpx的换算比率,实现字体大小和布局的动态缩小放大

zpl11 commented 2 years ago

有解决方案吗,我也遇到同样问题

hemengke1997 commented 1 year ago

try https://github.com/hemengke1997/postcss-pxtoviewport

HarveyLee1228 commented 1 year ago

有同样的需求,请问实现了吗

vaynevayne commented 1 year ago

微信怎么改变? 有文档吗