【发布时间】:2014-01-22 10:31:47
【问题描述】:
我在这里基本上使用这种方法:https://coderwall.com/p/uer3ow 来设置我的文件输入部分的样式,但它似乎在 IE8 中不起作用;我看到的只是一个大按钮的一角。
HTML:
<div class="upload_btn">
<span>Choose File</span>
<input type="file" name="item_file_upload_1" id="item_file_upload_1">
</div>
CSS:
.forms .upload_btn {
position: relative;
display: inline-block;
text-align: center;
width: 97px;
height: 27px;
font-weight: 300;
font-size: 16px;
line-height: 27px;
color: #393d59;
border: 2px solid #b9c0d6;
overflow: hidden;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
}
.forms .upload_btn > input[type="file"] {
position: absolute;
cursor: pointer;
top: 0;
right: 0;
font-size: 200px;
opacity: 0;
}
【问题讨论】:
标签: css internet-explorer-8 opacity