打印

[CSS] CSS:鼠标经过时改变背景颜色或图片

CSS:鼠标经过时改变背景颜色或图片

可以用于table的td,也可以用在div上,类似IBM的效果

鼠标经过时改变背景颜色
插入代码:
<table><tr><td width="100" height="100" onmouseover="style.backgroundColor='#C86F70'" onmouseout="style.backgroundColor='#DDC676'" bgcolor="#DDC676">webjx.com</td></tr></table>
鼠标经过时改变背景图片
插入代码:
<table><tr><td width="100" height="100" onMouseOver="this.background='/images/1.gif';" onMouseOut="this.background='/images/2.gif';" background="/images/2.gif">webjx.com</td></tr></table>
关键词:网页制作,css

TOP

返回顶部
AYBlue

Processed in 0.039387 second(s), 7 queries.

当前时区 GMT+8, 现在时间是 2009-1-9 07:33 京ICP备06054220号

清除 Cookies - 联系我们 - 163K.com - Archiver - WAP