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
introduction As usual, let's start with a sce...
background: The site is separated from the front ...
Anaconda Installation Anaconda is a software pack...
As you build and scale your Django applications, ...
1. What is the use of slow query? It can record a...
Create a database Right click - Create a new data...
1. Create an empty directory $ cd /home/xm6f/dev ...
Copy code The code is as follows: <style type=...
mysql query data from one table and insert it int...
To see the effect directly, a right-click menu ha...
Table of contents 01 JavaScript (abbreviated as: ...
Table of contents 1. Add packaging command 2. Run...
1. Background Netplan is a new command-line netwo...
MySQL Views Simply put, a MySQL view is a shortcu...
need After the user fills out the form and clicks...