Let element.style.height work in IE and Firefox

February 16, 2007 by hejian

The Correct way is:

element.style.height = "22px";

These are error way:

element.style.height = 22; /* only work in IE */
element.style.height = "22px;"; /* only work in Firefox */

Leave a Reply

You must be logged in to post a comment.

Wordpress template made by HeJian