1

现在我有一辆移动/旋转的汽车。但是当我同时移动和旋转时,汽车不会围绕中心旋转。

setInterval(function() {
            box.css({
                left: function(index,value) { return newv(value, 37, 39); },
                top: function(index,value) { return newv(value, 38, 40); },
                transform: function(index,value) { return "rotate(" + newr(37, 39) + "deg)"; }
            });
        }, 20);

在调用 CSS 属性之前,我尝试将图像的宽度和高度划分为 2,但没有成功。任何帮助表示赞赏。

完整的小提琴在这里

4

0 回答 0