Skip to content

scale-fixed

固定元素的全局缩放,不随视图放大。

安装插件

需要安装 scale-fixed 插件才能使用,点此访问 Github 仓库

sh
npm install @leafer-in/scale-fixed
sh
pnpm add @leafer-in/scale-fixed
sh
yarn add @leafer-in/scale-fixed
sh
bun add @leafer-in/scale-fixed

或通过 script 标签引入,使用全局变量 LeaferIN.scaleFixed 访问插件内部功能。

html
<script src="https://unpkg.com/@leafer-in/scale-fixed@2.0.3/dist/scale-fixed.min.js"></script>
html
<script src="https://unpkg.com/@leafer-in/scale-fixed@2.0.3/dist/scale-fixed.js"></script>

下一步

scaleFixed 属性

Released under the MIT License.