开发者

Work around for jQuery draggable and resizeable on image

Trying to apply both draggable and resizeable with jQuer开发者_JAVA技巧y to an image does not work correctly. It will resize but not drag. Are there any known solutions to this?


This seems to work fine if I wrap the img in a div:

<div id="drag_resize"><img src="img.jpg"/></div>

And then call resizeable and draggable on that div:

$("#drag_resize").resizable().draggable();

Here's a working example: http://jsfiddle.net/andrewwhitaker/HNYVk/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜