我想在使用jQuery UI可调整大小时缩放元素的效果。因式分解css3变换比例到jQuery UI可调整大小
这里有一些关于css3转换问题的大小/拖动...没有一个我发现提供了一个成功的解决方案。
我现在暂时搁置轮换问题。只是想要它与规模工作。
我设法修改可拖动,但遇到可调整大小的问题。 例如:完成此
HTML
<div id= 'div1'>
resize the div and note that the mouse cursor's
distance from the resize handle increases over time
<div>
CSS
#div1{
margin:100px;
width:100px;
height:100px;
border:1px solid black;
font-size:12pt;
overflow:hidden;
-webkit-transform:scale(2);
}
JS
$('#div1').resizable();
http://jsfiddle.net/asaf/JBE2r/1/
注意:在jquery ui 1.8.11中注释掉'bugfix'会大大减少这个问题。但是相对于元素的光标位置仍然存在问题。搜索ui代码:// bugfix for http://dev.jquery.com/ticket/1749 – CodeToad
更改库的源代码始终是对非泛型情况进行扩展的最糟糕的方式。 :) –