我有两个可拖动和可调整大小的框。框拖动和调整大小,但不是其中的图像......这是它应该如何工作的?
查询:
$( "#draggableNW" ).draggable().resizable({
alsoResize: '#img1',
aspectRatio: true
});
$( "#draggableNE" ).draggable().resizable({
alsoResize: '#img2',
aspectRatio: true
});
HTML:
<div id="draggableNE" class="ne" style="width:100px; height:60px; z-index:30; position:absolute; background:blue">
<img src="http://jsfiddle.net/img/logo.png" width="100" id="#img2"></img>
</div>
<div id="draggableNW" class="nw" style="width:100px; height:60px; z-index:30; position:absolute; right:0; background:red;">
<img src="http://jsfiddle.net/img/logo.png" width="100" id="#img1"></img>
</div>
小提琴: