CSS3 opacity使用实例页面

代码:

CSS代码:
.opacity1{opacity:0.3;}
.opacity2{opacity:0.6;}
                
HTML代码:
<img class="opacity1" src="//image.zhangxinxu.com/image/blog/zxx_90_0824.jpg" />
<img class="opacity2" src="//image.zhangxinxu.com/image/blog/zxx_90_0824.jpg" />
                

效果: