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
Let’s start the discussion from a common question...
Introduction During the work process, slow querie...
Table of contents Preface 1. Get the current time...
Because the company asked me to build a WebServic...
Today I will introduce a small Javascript animati...
How to create a virtual machine on VMware and ins...
A colleague asked me to help him figure out why m...
Table of contents 1. Scope 2. Scope Chain 3. Lexi...
Today I made a menu button. When you move the mous...
Table of contents Preface 1. Linux changes the yu...
This article records the installation and configu...
MongoDB Installation Choose to install using Yum ...
Table of contents 1. Use RGB to represent color 2...
I am very happy to attend this episode of potato ...
Table of contents Create a table View the databas...