CSS实现鼠标经过图片有黑白变为彩色
2008-11-04 19:30:26 来源:WEB开发网核心提示:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmln
<!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">
<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="http://www.cncms.com/图片.jpg" border="0"></A>
</td>
</tr>
</table>
</body>
</html>
<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="http://www.cncms.com/图片.jpg" border="0"></A>
</td>
</tr>
</table>
</body>
</html>
更多精彩
赞助商链接