CSS Filter背景透明提示
作者:bea
<!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
<!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的Filter背景透明提示</title>
<style>
*{ 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;}
.model a:hover span{ color:#fff; background:#000; padding:0; display:block; width:84px; height:54px; margin:-36px 0 0 1px!important; margin:-36px 0 0 0px; overflow:hidden; line-height:16px; filter: Alpha(opacity=60); opacity:.6; text-align:left; text-align:center;}
.model2{margin:0 auto; width:30px;}
.model2 a:hover{ text-decoration:none;}
.model2 a img{ border:#fff 1px solid;}
.model2 a:hover img{ border:#888 1px dotted;}
.model2 a span{ padding:0; display:block; width:180px; height:50px; margin-top:-32px; overflow:hidden; line-height:14px; filter: Alpha(opacity=0); opacity:.0; cursor:pointer; text-align:center;}
.model2 a:hover span{ color:#fff; background:#000; padding:0; display:block; width:480px; height:16px; margin:-36px 0 0 1px!important; margin:-20px 0 0 0px; overflow:hidden; line-height:16px; filter: Alpha(opacity=60); opacity:.6; text-align:left; text-align:center;}
</style>
</head>
<body>
<div class="model"><a href="#"><img src="http://files./upload/2009-11/20091103230519197.jpg" border="0" /><span>我可爱吗?</span></a></div>
</body>
</html>
[Ctrl+A 全选 注:
如需引入外部Js需刷新才能执行]
有用 | 无用
猜你喜欢
您可能感兴趣的文章:
- jQuery 加上最后自己的验证
- javascript Math.random()随机数函数
- JavaScript 抽奖效果实现代码 数字跳动版
- jquery (show,fadeOut,Animate)简单效果
- jquery checkbox全选反选效果代码
- jquery animate 动画效果使用说明
- jquery 动态调整textarea高度
- CSS 直方图布局示例
- JavaScript 表格高亮类的应用[高级]
- JavaScript window.setTimeout() 的详细用法
- javascript 限制输入脚本大全
- jquery ajax 检测用户注册时用户名是否存在
- 基于JQuery框架的AJAX实例代码
- Jquery AJAX 框架的使用方法
- JQuery打造PHP的AJAX表单提交实例
- jQuery get和post 方法传值注意事项
- 实用的层滑开js实现代码
- 纯JS图片批量预加载技术代码
- CSS鼠标悬停菜单 图片交换技术实现