码迷,mamicode.com
首页 > Web开发 > 详细

css 透明度使用

时间:2017-09-09 14:37:36      阅读:162      评论:0      收藏:0      [点我收藏+]

标签:div   city   pac   rgb   rgba   背景色   透明度   col   nbsp   

设置元素整体透明度:

div{
  opacity: 0.5;  
}

 

设置背景色透明度

div{
  background: rgba(0,0,0,0.5);  
}

 

css 透明度使用

标签:div   city   pac   rgb   rgba   背景色   透明度   col   nbsp   

原文地址:http://www.cnblogs.com/chenglj/p/7498107.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!