A BUG solution to IE6 image loading_javascript skills
May 16, 2016 pm 06:23 PM
bug
ie6
Image loading
The code is as follows:
Copy code The code is as follows:
<!--[if IE 6 ]><script type="text/javascript">
try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
</script>< ![endif]-->
Note: This BUG has been discovered before and is just mentioned again here.
For more detailed instructions, please refer to the following article:
Background images are not cached by default under IE6. Every time the position of the image is changed in CSS, the request will be reinitiated. Use this method to tell IE6 to cache the background image
Solve the problem of jitter during mouse operation when the image is used as the background in IE
Method 1, css (not recommended)
Copy code The code is as follows:
html {
filter: expression(document.execCommand("BackgroundImageCache", false, true));
}
Method 2, js
Copy content to clipboard
Copy code Code As follows:
try {
document.execCommand('BackgroundImageCache', false, true);
} catch(e) {}
In fact now Most of the solutions to the problem use CSS background positioning. That is, all the icons on the entire page are placed on one picture. (Take mail 163 as an example)
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

Hot Article
Repo: How To Revive Teammates
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
How Long Does It Take To Beat Split Fiction?
3 weeks ago
By DDD
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌

Hot tools Tags

Hot Article
Repo: How To Revive Teammates
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
How Long Does It Take To Beat Split Fiction?
3 weeks ago
By DDD
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

How to optimize image loading failure display problem in Vue development

How to solve the problem that Edge browser cannot load images

Vue lazy loading image failure problem solution

How to solve the problem that Windows 11 Microsoft Store images cannot be loaded
