Hello i am a new comer
i want to make a "div" move,but i dont't understand why why can not use "style.offsetLeft"?
here is code:
block.style.left=block.offsetLeft+step+'px';
if i write such as :block.style.left=block.style.left+step+'px';
the result is wrong!
can you tell me why the "block.style.left" is wrong?