var photo=$(".photowall li"); for(var i=0; photo.eq(i).val()==0;i++){ var left = Math.floor( Math.random() * 760 + 40 ); var top = Math.floor( Math.random() * 400 ); var angle = Math.floor( Math.random() * 60 - 30 ); photo.eq(i).css({ ‘left‘:left+‘px‘, ‘top‘ :top+‘px‘, ‘transform‘: ‘rotate(‘ + angle + ‘deg)‘, ‘-moz-transform‘: ‘rotate(‘ + angle + ‘deg)‘, ‘-webkit-transform‘: ‘rotate(‘ + angle + ‘deg)‘, ‘-o-transform‘: ‘rotate(‘ + angle + ‘deg)‘ }); }
时间: 2024-10-11 01:39:29