【发布时间】:2016-08-16 11:46:02
【问题描述】:
我需要“用户友好”的旋转、拖动和调整大小的 DIV。但是,当这个 DIV 被旋转时,RESIZE 函数的工作非常奇怪。不像在图像编辑器中。用户无法正确处理调整大小。如何制作?
HTML:
<div id="blue"></div>
CSS:
#blue {
top: 100px;
left: 100px;
width:200px;
height:200px;
background-color:blue;
-ms-transform: rotate(120deg); /* IE 9 */
-webkit-transform: rotate(120deg); /* Safari */
transform: rotate(120deg);
}
jQuery
$("#blue").resizable({
aspectRatio: false,
handles: 'ne, se, sw, nw'
});
$("#blue").draggable();
【问题讨论】:
标签: jquery-ui rotation resizable