
Security News
/Company News
Socket Is Sponsoring Composer and Packagist
Socket has joined the new Composer and Packagist sponsorship program as a launch sponsor, supporting the team that keeps PHP's package ecosystem secure.
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.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
/Company News
Socket has joined the new Composer and Packagist sponsorship program as a launch sponsor, supporting the team that keeps PHP's package ecosystem secure.

Research
/Security News
Benign-looking npm packages split malicious functionality across a dependency chain that deploys a cross-platform RAT targeting Alibaba developers.

Research
/Security News
Two Joyfill npm beta releases contain an import-time implant that uses blockchain transactions to retrieve a remote-access trojan.