小编use*_*721的帖子

ie7上的不透明度输入文件,ie8

好吧,我得到了这个代码:

<div class="teste">
    <input type="file" name="teste" />
    teste
</div>
Run Code Online (Sandbox Code Playgroud)

CSS:

.teste {
   width:300px;
   height:100px;
   position:absolute;
   top:10px;
   right:10px;
   overflow:hidden;
   background-color:#FF0000;
   opacity:1; 
   filter:alpha(opacity=100);
}

input[type=file] {
   position:absolute;
   top:0px;
   right:0px;
   font-size:300px;
   opacity:0;
   filter:alpha(opacity=0);
}
Run Code Online (Sandbox Code Playgroud)

在FF和Chrome工作完美,但在文本'teste'变白,我发现当输入文件在文本'teste'时它变白了.

有谁知道如何解决它?谢谢.

html css internet-explorer

1
推荐指数
1
解决办法
5298
查看次数

标签 统计

css ×1

html ×1

internet-explorer ×1