<td id="display5" class="displayableCell" style="border: 0px none; width: 120px;">
<span id="name5">Photo Name</span>
<br>
<img id="img5" height="auto" width="120px" src="/Home/GetPhoto/53">
</td>
我已經嘗試了許多東西都沒有用。這是我最近的一次嘗試,它最大限度地減少了圖像,但並沒有將它移到右側,這是整個目標。 如何在td區域之外向右移動它。如何使用jQuery和/或css在td中爲此圖像製作動畫?
var target = "#img" + Displayable.count;
$(target).animate({ "left": "+=240px", "width": "-=120px" }, "fast");
不要忘了右括號。 :) – 2011-12-27 20:43:05
@TravisJ - 我添加了一個更新到我的答案。我很抱歉沒有完全閱讀你的問題,看到它已經在調整大小,但沒有移動。 – 2011-12-27 20:49:48
@TravisJ,我相信你必須設置位置風格。嘗試'親戚'。 – 2011-12-27 20:50:12