为什么使用px2rem之后使用动态style时js中的px不会被改变

有没有什么方法能让动态style中的px单位也被替换?我试了css变量也不行,好像webpack的plugins作用时间在vue打包编译之前。

vuejs
44 views
Comments
登录后评论
Sign In