
Security News
Happy Birthday, Shai-Hulud
It has been one year since Shai-Hulud made its first appearance on npm.
import {Rem} from 'clever-rem';
Rem(750);
// import Rem from 'clever-rem';
// Rem(750);
// 两种方式都可以使用,建议在根组件中使用 750是设计稿宽度
styl文件
$REM = 1000;
rem($px) {
$px / $REM rem;
}
.example {
width: rem(750); // 相当于宽度占满,注意样式要初始化,去掉默认margin padding
}
FAQs
rem响应,和设计稿尺寸一样
We found that clever-rem demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Security News
It has been one year since Shai-Hulud made its first appearance on npm.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.

Security News
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.