ccs style setting doesn't work

+2 Jason Yu · February 6, 2015
why option 2 can't work

1.
ele.style.top = y + "px";
ele.style.left = x + "px";

2.
ele.style.top = y;
ele.style.left = x;

Post a Reply

Replies

Oldest  Newest  Rating
0 Michael Chimezie · February 28, 2015
be more explicit
  • 1

Javascript

107,081 followers
About

A scripting language that is added to standard HTML to create interactive effects, apps, games for the browser.

Links
Moderators