dom-fit:将一个 DOM 元素放入另一个

时间:2021-07-05 19:34:43
【文件属性】:
文件名称:dom-fit:将一个 DOM 元素放入另一个
文件大小:7KB
文件格式:ZIP
更新时间:2021-07-05 19:34:43
JavaScript dom-fit 将一个 DOM 元素放入另一个 安装 用做: $ npm install dom-fit --save 使用安装: $ component install nk-components/dom-fit 用法 var domFit = require ( 'dom-fit' ) ; var inner = document . querySelector ( '#inner' ) ; var outer = document . querySelector ( '#outer' ) ; var fit = domFit ( inner , outer , { /** * If the module listen `resize` event. * If it's set to false, you have to call `.resize()`.
【文件预览】:
dom-fit-master
----.gitignore(53B)
----package.json(973B)
----LICENSE(1KB)
----index.js(3KB)
----README.md(1KB)
----component.json(411B)
----example()
--------index.html(953B)
----.npmignore(32B)
----test()
--------runner.html(479B)
--------dom-fit.js(3KB)
----.editorconfig(245B)

网友评论