84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
就是animate方法里面的
topOrLeft: "-=" +$("body")[widthOrHeight]() + "px"
这句。经过debugger,就是这句话出错了,我把右边的换成"768px",在debugger里面显示的也是0px,topOrLeft传入的是"marginTop",请问哪里出错了?
走同样的路,发现不同的人生
没见过animate里有topOrLeft, 要不top, 要不left要不你就这么写
var obj = {}; obj[topOrLeft] = "???"; $(???).animate(obj);
http://www.w3school.com.cn/jquery/effect_animate.asp
看一下animate()的参数吧
没见过animate里有topOrLeft, 要不top, 要不left
要不你就这么写
http://www.w3school.com.cn/jquery/effect_animate.asp
看一下animate()的参数吧