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

WBOY
Release: 2016-05-16 18:51:47
Original
1352 people have browsed it

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)
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template