javascript - jquery ui resizable left-bottom handle to resize

标签 javascript jquery jquery-ui jquery-ui-resizable

我在我的项目中使用 jquery-ui-resizable 插件。

默认情况下,当您制作 DOM 对象 jquery-ui-resizable 时,可调整大小的句柄将出现在右下角,我需要在左下角显示可调整大小的句柄。

--- 编辑 ---

还有一件事,它不应该使用右边框调整大小,但应该使用左边框调整大小。

enter image description here

最佳答案

您应该使用句柄

supported: { n, e, s, w, ne, se, sw, nw }. 

这将在您指定的一侧创建 handle 。默认值为

'e, s, se'

代码示例

使用指定的句柄选项初始化可调整大小。

$( ".selector" ).resizable({ handles: 'n, e, s, w' });

在初始化后获取或设置句柄选项。

//getter
var handles = $( ".selector" ).resizable( "option", "handles" );
//setter
$( ".selector" ).resizable( "option", "handles", 'n, e, s, w' );

关于javascript - jquery ui resizable left-bottom handle to resize,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6871558/

相关文章:

javascript - 使用 new Image() 进行点击跟踪是否安全?

javascript - 负边距的盲注

javascript - 如何根据数据事件属性激活 jQuery UI Accordion?

java - Struts2 jQuery 插件 : trigger link on double click

jQuery 源代码使用 Require.js,但最终文件没有?

javascript - .mouseover 在放下元素后停止工作

javascript - 将元素放入不是父元素的元素中(JQuery UI 可排序)

javascript - 解释: jQuery Caching Code

javascript - Facebook Credits Api实现

jquery - 使用 JQuery 返回默认颜色