好吧,我得到了这个代码:
<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'时它变白了.
有谁知道如何解决它?谢谢.