1. In IE, if relative positioning is used, that is, <div style="background:url();position:relative;"></div>, the background image cannot be grayed out. 2. In Firefox or Google Chrome, if the className of an element is changed through js, the changed className style cannot be displayed because the js file directly adds the style to the element after the web page is loaded, resulting in the inability to switch normally. The first solution is to use the code html { filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); } in IE. It does not work in Firefox or other browsers. I don't know the second solution either. In order to switch normally, I can only reset the div in this area, that is, not let it gray out. The code is as follows: grayscale.reset(div); Related information: https://www.jb51.net/article/23167.htm |
<<: How to configure whitelist access in mysql
>>: How to use translate and transition in CSS3
Having used MySQL for such a long time, I believe...
Table of contents Preface 1. Application componen...
Maybe some people have not come across this issue ...
Using the Docker run command docker run -d -p 920...
1. MySQL download address; http://ftp.ntu.edu.tw/...
First: Installation of MySQL Download the MySQL s...
Table of contents need Workaround 1. Set tooltip ...
This article mainly introduces the effect of div ...
When I first came into contact with HTML, I alway...
Xhtml has many tags that are not commonly used but...
Table of contents 1. Introduction 2. Code Impleme...
When making web pages, you often encounter the pr...
Click on the anchor link to scroll smoothly and a...
Today, the company project needs to configure doc...
Note: The system is Ubuntu 14.04LTS, a 32-bit ope...