实例首页
自学教程
IT工具箱
源代码
下载代码
上下布局
点击运行 >
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>css 图片透明 实例 - 自学教程(runoops.com)</title> <style> div.img { opacity: 0.4; filter: alpha(opacity=40); /* IE8 及其更早版本 */ } </style> </head> <body> <div class="img"> <a target="_blank" href="//demo.runoops.com/static/img/klematis_small.jpg"> <img src="//demo.runoops.com/static/img/klematis_small.jpg" alt="图片文本描述" width="300" height="200"> </a> <div class="desc">这里添加图片文本描述</div> </div> </body> </html>
运行结果: