用css filter做鼠标滑过图片效果
来源:
中文源码网 浏览:290 次 日期:2024-04-23 04:08:20
【下载文档: 用css filter做鼠标滑过图片效果.txt 】
用css filter做鼠标滑过图片效果
首先看个简单的例子吧。
http://www.cssrain.cn
*{ margin:0; padding:0;}
body{ margin:0 auto; font-size:12px;}
.model{margin:0 auto; width:30px;}
.model a:hover{ text-decoration:none;}
.model a img{ border:#fff 1px solid;}
.model a:hover img{ border:#888 1px dotted;}
.model a span{ padding:0; display:block; width:80px; height:50px; margin-top:-32px; overflow:hidden; line-height:14px; filter: Alpha(opacity=0); opacity:.0; cursor:pointer; text-align:center;}
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]