首页前端开发CSS用css filter做鼠标滑过图片效果

用css filter做鼠标滑过图片效果

时间2024-02-09 05:11:03发布访客分类CSS浏览269
导读:收集整理的这篇文章主要介绍了用css filter做鼠标滑过图片效果,觉得挺不错的,现在分享给大家,也给大家做个参考。 首先看个简单的例子吧。 http://www.cssrain...
收集整理的这篇文章主要介绍了用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需再刷新一下页面才能执行]

声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!


若转载请注明出处: 用css filter做鼠标滑过图片效果
本文地址: https://pptw.com/jishu/606483.html
css多行多列的新闻模式 使css兼容IE8的小技巧

游客 回复需填写必要信息