`

将彩色图片变黑白效果

    博客分类:
  • css
CSS 
阅读更多
将彩色图片变黑白效果
<P align=center><img src="http://n1.018098.cn/host/com/xinyu/attachment/200707/kehuicms10125405.jpg" style="filter:'gray'">



CSS实现鼠标经过图片有黑白变为彩色
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=gb2312" />
<title>CSS实现鼠标经过图片由黑白变彩色</title>
<style><!--body,td{font-size: 12px;}--></style>
<STYLE type=text/css>
A IMG {
FILTER: gray
}
A:hover IMG {FILTER:
}
</STYLE>
</head>
<body bgcolor="" 无>
<table width="100%" height="1000" border="0" cellpadding="10" cellspacing="5">
<tr>
<td valign="top">
<A href="链接地址"><IMG src="图片.jpg" border="0"></A>
</td>
</tr>
</table>
</body>
</html>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics