Home >Web Front-end >JS Tutorial >IE8 compatibility issues (attribute names are case-sensitive)_javascript skills
IE8 compatibility issues (attribute names are case-sensitive)_javascript skills
WBOYOriginal
2016-05-16 18:51:471336browse
If the attribute height is not written in all lowercase, such as window.screen.Height or window.screen.heighT, the value can be obtained under IE6 and IE7 (IE6 and IE7 are not case-sensitive), and the value under IE8 is undefined (IE8 is case sensitive), so the problem occurs. Example:
Solution: Just replace all html, js and jsp files without case sensitivity. List of properties known to need to be replaced in the INS system: window.screen.height (miswritten as window.screen.Height) window.screen.width (miswritten as window.screen .Width)
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn