0

http://jsfiddle.net/maximus392/gcQmM/7/

我的问题是可调整大小的图像使另一个图像也在 div 中移动。当我调整图像大小时,我想防止 div 画布上其他内容的移动。

请建议。

4

2 回答 2

1

使您的图像绝对定位:

img.item { 
    position:absolute;
}

演示

于 2012-10-10T12:36:11.427 回答
0

http://jsfiddle.net/gcQmM/34/

this fiddle is much better i think, and more simple
于 2013-06-20T13:50:11.947 回答