1

目前,要在 DOM 中放置一个绝对元素,我使用:

this.myObject.style.left = aValue1 + 'px' ;
this.myObject.style.top = aValue2 + 'px' ;
this.myObject.style.width = aValue3 + 'px' ;
this.myObject.style.height = aValue4 + 'px' ;

有没有更好的(浏览器快速)方法来做到这一点?

另外,也许我应该从 DOM 中删除元素并在之后重新附加?

感谢您的回答。

4

1 回答 1

1
于 2012-12-01T23:48:32.407 回答