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

html中的style 行内样式(富文本返回来的),这个怎么实现转换style行内样式呢? #59

Open teamemory opened 4 years ago

teamemory commented 4 years ago

如题

ZhanghaoH commented 4 years ago

+1,用到了ant-design for mobile的库,地址三级下拉picker里有行内样式,是px单位,造成了视觉影响

qduld commented 3 years ago

怎么处理 vue 里模板动态的style

lxz8798 commented 3 years ago

vue 到我在网上找到资料,有一个插件 style-vw-loader,只是暂时不支持react

leggod commented 2 years ago

很简单啊,行内样式自己算,也就是简单的四则运算

han818 commented 10 months ago

请问楼主解决了没,遇到相同的问题了