标签:animate height nim on() style 相对 button jquery mat
也可以定义相对值(该值相对于元素的当前值)。需要在值的前面加上 += 或 -=:
$("button").click(function(){
$("div").animate({
left:‘250px‘,
height:‘+=150px‘,
width:‘+=150px‘
});
});
jQuery animate() - 使用相对值 在值的前面加上 += 或 -=
标签:animate height nim on() style 相对 button jquery mat
原文地址:http://www.cnblogs.com/zyjzz/p/6973703.html