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
Overview I believe we often encounter such scenar...
Table of contents Overview 1. Menu and routing pr...
This article is based on the CentOS 7.3 system en...
Use Javascript to implement a drop-down menu for ...
【background】 I encountered a very embarrassing th...
This article example shares the specific code of ...
First, let's explain the network setting mode...
Table of contents Problem Description Principle A...
MariaDB is installed by default in CentOS, which ...
I have encountered the problem that MySQL can con...
1. HBase Overview 1.1 What is HBase HBase is a No...
The full name of SSH is Secure SHell. By using SS...
Table of contents Overview Index data structure B...
Table of contents 1. Particle Effects 2. Load the...
The parameter passed by ${param} will be treated ...