(三)学习CSS之opacity 属性
时间:2014-09-02 22:48:55
收藏:0
阅读:410
参考:http://www.w3school.com.cn/cssref/pr_opacity.asp
opacity 属性设置元素的不透明级别。
<!DOCTYPE html> <html> <head> <style> div { background-color:red; opacity:0.5; filter:Alpha(opacity=50); /* IE8 以及更早的浏览器 */ } </style> </head> <body> <div>本元素的不透明度是 0.5。请注意,文本和背景色都受到不透明级别的影响。</div> </body> </html>
原文:http://www.cnblogs.com/wiming/p/3952418.html
评论(0)