更新时间:2023-02-05 22:37:14
在加载时使其可调整大小:
Make it resizable when it's loaded:
$(elm).load(function(){$(this).resizable();}).appendTo('#container').parent().draggable();
如果您在不清楚图像的大小之前进行此操作,那么可调整大小的初始大小将设置为0/0
If you do it before it's not clear what size the image will have, so the initial size of the resizable is set to 0/0