【文件属性】:
文件名称:resizable:元素的可调整大小行为
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-08 04:43:03
JavaScript
可调整大小
元素的可调整大小的行为。
var Resizable = require ( 'resizable' ) ;
var el = document . querySelector ( '.my-element' ) ;
var resizable = new Resizable ( el , {
within : 'parent' ,
handles : 's, se, e' ,
threshold : 10 ,
draggable : false
} ) ;
resizable . on ( 'resize' , function ( ) {
//...
} ) ;
选项
范围
默认
描述
handles
*
要支持的句柄列表。 有效句柄: s , se , e , ne , n , nw , w , sw 。 可以指定为对象,数组或逗号分隔的字符串。
res
【文件预览】:
resizable-master
----todo.md(127B)
----index.js(11KB)
----package.json(1KB)
----test()
--------index.js(3KB)
--------index.html(377B)
--------index.css(1KB)
----license(1KB)
----.gitignore(622B)
----README.md(2KB)