Google Groups Home
Help | Sign in
为了表示哀悼,使网站或BLOG变灰的代码
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Sandro  
View profile
 More options May 19, 9:38 pm
Newsgroups: cn.fan, cn.personal.mm, cn.comp.internet, cn.bbs.admin.test, cn.bbs.163, cn.bbs.comp.internet, cn.bbs.comp.network, cn.bbs.comp.web, cn.bbs.comp.www, cn.bbs.comp.xml
From: Sandro <i...@sandro.3322.org>
Date: Tue, 20 May 2008 03:38:36 +0200
Local: Mon, May 19 2008 9:38 pm
Subject: 为了表示哀悼,使网站或BLOG变灰的代码
建议全国站长动起来。为在地震中遇难的同胞哀悼。
愿逝者安息,生者坚强!默哀!

在您的CSS文件内
body中加入以下代码:
PHP代码:
filter: Gray;
最简单的把页面变成灰色的代码是在head 之间加 引用:
<style type="text/css">
html {
     FILTER: gray

}

</style>

或者修改站点的CSS样式文件
body { color: #0xFFFFFF; backgroud: 0x000000; }
可以对一下调色版,配一个不是纯黑纯白的...
看: http://html-color-codes.com/

把图片显示为黑白 (公司内邮件组看到的办法):
在CSS样式文件中加入:
html { filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); }
如果网站没有使用CSS,可以在网页/模板的HTML代码<head>和</head> 之间插入: 引
用:
<style>
html{filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);}
</style>

有一些站长的网站可能使用这个css 不能生效,是因为网站没有使用最新的网页标准
协议 引用:
<!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">
请将网页最头部的<html>替换为以上代码。

有一些网站FLASH动画的颜色不能被CSS滤镜控制,可以在FLASH代码的<object …>和
</object>之间插入: 引用:
<param value="false" name="menu"/>
<param value="opaque" name="wmode"/>

这个是IE only的.

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Guxq  
View profile
 More options May 19, 9:57 pm
From: Guxq <gux...@gmail.com>
Date: Tue, 20 May 2008 09:57:15 +0800
Local: Mon, May 19 2008 9:57 pm
Subject: Re: [keso] 为了表示哀悼,使网站或BLOG变灰的代码
嗯,我用的是html{filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1) ;}

2008/5/20 Sandro <i...@sandro.3322.org>:

--
with best regards
please visit me at guxq.cn

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sandro  
View profile
 More options May 20, 6:11 pm
Newsgroups: cn.fan, cn.bbs.admin.test, cn.bbs.comp.web, cn.personal.mm
From: Sandro <i...@sandro.3322.org>
Date: Tue, 20 May 2008 15:11:45 -0700 (PDT)
Local: Tues, May 20 2008 6:11 pm
Subject: Re: 为了表示哀悼,使网站或BLOG变灰的代码
注意:ie only

好像还没发现ff/opera等的解决方式,不过有一种方法就先用起来吧

On 20 Mai, 03:53, Sandro <i...@sandro.3322.org> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Guxq  
View profile
 More options May 20, 8:52 pm
From: Guxq <gux...@gmail.com>
Date: Wed, 21 May 2008 08:52:05 +0800
Local: Tues, May 20 2008 8:52 pm
Subject: Re: [keso] Re: 为了表示哀悼,使网站或BLOG变灰的代码
国人用ie的还是大多数。

2008/5/21 Sandro <i...@sandro.3322.org>:

--
with best regards
please visit me at guxq.cn

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sandro  
View profile
 More options May 21, 12:58 pm
From: Sandro <i...@sandro.3322.org>
Date: Wed, 21 May 2008 09:58:42 -0700 (PDT)
Local: Wed, May 21 2008 12:58 pm
Subject: Re: 为了表示哀悼,使网站或BLOG变灰的代码
嗯,其实全球都是ie大多数

On 21 Mai, 02:52, Guxq <gux...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google