Home  >  Article  >  Web Front-end  >  IE8 compatibility issues (attribute names are case-sensitive)_javascript skills

IE8 compatibility issues (attribute names are case-sensitive)_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:51:471313browse

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:

Copy code The code is as follows:








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