用jQuery移动元素 [英] moving elements with jquery
本文介绍了用jQuery移动元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何使用jQuery从以下位置移动元素:
How can I use jQuery to move an element from:
position: absolute;
left: 169px;
top: 182px;
收件人:
position: absolute;
left: 169px;
top: 230px;
动起来很清晰,而不仅仅是css,它必须要动.
with clear moving so not just css, it has to be moving.
谢谢.
推荐答案
http://api.jquery.com /animate/
演示: http://jsfiddle.net/pHwMK/
JS:
$(function() {
$("div.ele").animate({ top: '230px' });
});
这篇关于用jQuery移动元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文