Do you avoid using "inherit" value of style.display?

Last updated by Brook Jeynes [SSW] 7 months ago.See history

This rule has been archived
Archived Reason: IE7 is no longer supported

The property value “inherit” of style.display is not recognized by IE7 and IE7 compatibility mode. So if you use this value in Javascript, it will cause script error in IE7 and IE7 compatibility like: "Message: Could not get the display property. Invalid argument."

So to make your Javascript and CSS style more compatible and avoid using "inherit" value of style.display: = "inherit";

Bad code - inherit property. = "block";

Good code - block property.

We open source. Powered by GitHub