Home > Backend Development > PHP Tutorial > Support Ya'an, modify the webpage to become gray and modify the code to use it

Support Ya'an, modify the webpage to become gray and modify the code to use it

WBOY
Release: 2016-07-25 09:13:32
Original
1228 people have browsed it
Support Ya'an, the overall color of the website turns gray, let us pray for it! As a programmer, what can we do as a webmaster? Use your actions to pray for the people in Ya'an, Sichuan! Webmasters, please take action together and pray for the people of Ya'an, Sichuan.


The following code is the css code that makes the entire site web page gray:
  1. html { filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); -webkit-filter: grayscale(100%); }
Copy the code
How to use: Add the code to the bottom of the CSS file.

If the website does not use CSS, you can insert between the global header html code and
of the web page/template:
Copy code
Note:

1. Some webmasters’ websites use the above code but it does not take effect because the website pages do not use the latest web standard protocol

Copy the code
Please replace the at the top of the webpage with the above code to solve the problem.

2. The color of FLASH animation on some websites cannot be controlled by CSS filters. You can insert it between and in the FLASH code:

Copy the code
How to modify the entire Discuz forum to turn gray:

Method 1(Recommended): Add the following code in the background--Global--SEO Settings--Others--Other header information:
Copy code
Support Ya'an, modify the webpage to become gray and modify the code to use it
Method 2: Add
  1. html{filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);-webkit-filter: grayscale(100%) at the bottom of the common.css file in the templatedefaultcommon directory of the Discuz template ;}
Copy the code
Method 3: Add
Copy code
Ya'an


source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template