zl程序教程

您现在的位置是:首页 >  前端

当前栏目

网页黑白代码

网页代码 黑白
2023-06-13 09:15:56 时间

警告

本文最后更新于 2013-04-23,文中内容可能已过时。

1,确认使用最新的网页标准协议:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">

2,添加 CSS 代码:

html { filter:progid:DXImageTransform.Microsoft.BasicImage (grayscale=1); -webkit-filter: grayscale (1); }

若没有全站 CSS 代码,可在 < head > 和之间添加 html 代码:

<style>html { filter:progid:DXImageTransform.Microsoft.BasicImage (grayscale=1); -webkit-filter: grayscale (1); }</style>