hotcss.js 具体怎么用
sass:
@import 'px2rem.scss';
$designWidth: 750;
body{
width: 16rem;
margin: 0 auto;
}
button{
width: px2rem(402);
height: px2rem(40);
}
html:
<meta name="hotcss" content="initial-dpr=1">
<script src="https://r.mzmoney.com/topic/lead3/hotcss.js"></script>
没看出来跟lib-flexible有什么区别,建议去看看lib-flexible,阿里的Rem解决方案,github上还有专门的一篇文章写怎么用。