想用一個循環來表達這個..jQuery的for循環通格
$("div:nth-child(3)").css({"left": "5px"});
$("div:nth-child(2)").css({"left": "215px"});
$("div:nth-child(1)").css({"left": "425px"});
如何在每個被引用...
var x=0;
$("div").each(function(){
x=x+100;
$(this).css('position','absolute');
$(this).css({"left": "xpx"}); // not sure about this line
});
danke它的工作原理!超!謝謝 – windsurf88 2011-04-04 22:37:59