1.0.7 • Published 8 years ago
blear.core.flexible v1.0.7
blear.core.flexible
用法
npm install -S blear.core.flexible
<head>
<script src="/node_modules/blear.core.flexible/src/index.js">
</head>
接口
全局注册 flexible
。
flexible.value
当前的 html fontSize 计算值。
flexible.px2rem(px)
像素大小计算为 rem 大小。
flexible.rem2px(rem)
rem 大小计算为像素大小。
flexible.onChange(fn)
监听 html fontSize 的变化。