CSS不透明 - Internet Explorer [英] css opacity - internet explorer
本文介绍了CSS不透明 - Internet Explorer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我今天正在使用不透明度,并且从某种原因来说它不会在Internet Explorer上工作
i'm working with opacity today and from some reason it wont work on internet explorer
这里是我的CSS:
.box_1{opacity:0.4;filter:alpha(opacity=40)};
.box_1:hover{opacity:1.0;filter:alpha(opacity=100);}
,这里是我的HTML:
and here is my HTML:
<div class="box_1">
<img src="abc.png"/>
</div>
HOVER div无效。
这里的问题是什么?
the HOVER div does not work. what is the problem here?
推荐答案
在第一行结尾缺少一个大括号,它应该是:
You're missing a curly bracket at the end of your first line, it should be:
.box_1{opacity:0.4;filter:alpha(opacity=40);}
.box_1:hover{opacity:1.0;filter:alpha(opacity=100);}
'使用IE6时,:hover
选择器不适用于除< a>
标签之外的任何内容。为了解决它,你需要使用诸如无论:盘旋。
Also if you're using IE6 the :hover
selector won't work on anything except <a>
tags. To get around it you'll need to use something like Whatever:hover.
这篇关于CSS不透明 - Internet Explorer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文