是否有通向(滑坡)<代码>div的途径;例如,如果在网页上某个位置上 /strong>?
For example, there are four divs that all have the same class .ALLCONTENT
, but when a button (which has class .BUTTONS
) is clicked only the div that s at 30 px from the top will animate downwards, the rest will remain in the same place.
从根本上说,如果这种四分五裂的局面已经进一步滑坡,就将四分五舍五入到某个位置;问题一现在就存在。
$(".BUTTONS").click(function(){
$(".ALLCONTENT").animate({"top":"+=558px"}, 250, linear );
});