Css实现透明效果,兼容IE8

 

Css实现透明效果,兼容IE8

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

蕃薯耀 2015年9月9日 17:39:24 星期三

http://fanshuyao.iteye.com/

 

 

/* background: rgba(0, 0, 0, 0.2) none repeat scroll 0 0 !important; */
background-color:#000;
opacity:0.3;
filter:alpha(opacity=30); 

 

IE8显示效果:



 

 

谷歌内核浏览器显示效果:



 

 

下面为较完整的代码:

 

<li style="background-color:#2F8CEF;">
 <i class="icon-fire icon-4x"></i>
 <div class="service_box_content">
 <div class="service_box_title">点火通气申请</div>
       <div class="service_box_text">Ventilation application</div>
 </div>
</li>


/*下面为Css样式*/

.service_box ul li{
	width:48%;
	margin-right:8px;
	margin-bottom:8px;
	padding-top: 15px;
	height: 140px;
	display:block;
	border: solid 1px #fff;
	-moz-border-radius: 5px;
	-webkit-border-radius:5px;
	border-radius:5px;
	position: relative;
	float: left;
}

.service_box ul li i{
	color:#fff;
}

.service_box ul li div.service_box_content{
	height: 60px;
	width: 100%;
	position: absolute;
	left: 0px;
	bottom: 0px;
	color: #fff;
	/* background: rgba(0, 0, 0, 0.2) none repeat scroll 0 0 !important; */
	background-color:#000;
	opacity:0.3;
	filter:alpha(opacity=30); 
}

 

 

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

蕃薯耀 2015年9月9日 17:39:24 星期三

http://fanshuyao.iteye.com/

 

 

 

 

 

 

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值