我有一个div overflow=hidden;
就像我在这里添加的那个。我在里面有一些图像,一些在可见的div区域,一些在它之外(意思是如果div宽度是300,图像剩下500,所以你看不到图像)。我用一个JavaScript函数改变了图像的位置(全部彼此)。 如何在div区域加载图像(意思是:图像的左上角是div宽度和高度)?如何在div区加载图片?
而且我用一个通用拖动移动图像,就像这里描述的一个,在这里描述的Generic Drag。
<div id="mydiv" style="overflow=hidden; width: 300px; height: 300px; border: 1px solid #f00;">
<img id="Img1" border="0"
style="z-index: 10; position: absolute; visibility: visible; left: 481px; top: 347px; height: 15px; width: 16px;"
src="house1.gif">
<img id="Img2" border="0"
style="z-index: 10; position: absolute; visibility: visible; left: 200px; top: 200px; height: 15px; width: 16px;"
src="house1.gif">
<img id="Img3" border="0"
style="z-index: 10; position: absolute; visibility: visible; left: -50px; top: -50px; height: 15px; width: 16px;"
src="house1.gif">
<img id="Img4" border="0"
style="z-index: 10; position: absolute; visibility: visible; left: 481px; top: 50px; height: 15px; width: 16px;"
src="house1.gif">
<img id="Img5" border="0"
style="z-index: 10; position: absolute; visibility: visible; left: 50px; top: 60px; height: 15px; width: 16px;"
src="house1.gif">
</div>
尝试改写你的问题,这是很难理解 – Ibu 2011-06-01 05:55:29
@Ibu更新,这部分是很难理解 – hamze 2011-06-01 06:04:27
谢谢你,现在它使更多的意义 – Ibu 2011-06-01 06:08:43