How to use cssrem?
npm install cssrem
const cssrem = 375; // 375 is design width
<style>
.main {
width: 1rem; // 1rem = 100px;
font-size: 0.14rem; // 14px;
}
</style>
const cssrem = 375; // 375 is design width
<style>
.main {
width: 1rem; // 1rem = 100px;
font-size: 0.14rem; // 14px;
}
</style>
npm i cssrem
2
1.0.8
ISC
1.27 kB
3