gpt4 book ai didi

html - 自定义按钮输入类型图像 IE9+

转载 作者:行者123 更新时间:2023-11-28 08:03:40 26 4
gpt4 key购买 nike

我在 IE9+ 上显示这个按钮时遇到问题。如何删除按钮上显示的表单?

HTML

<input type="file" name="image" class="file_button_upload" />

CSS

    .file_button_upload{
width: 160px;
overflow: hidden;
font-size: 0px;
height: 30px;
margin-bottom: -15px;
display: inline-block;
background: url(http://www.festivalbenicomuni.it/wp-content/themes/festival/img/bg_btn.jpg);
border: 3px solid #000;
padding: 6px 0px;
width: 160px;
font-size: 0px;
color: #000;
font-family: 'DINPro-Bold';
text-align: center;
overflow: hidden;
text-indent: -9999px;
}

JSFIDDLE

最佳答案

You Should use conditional CSS for IE browsers like

<!--[if lte IE 9]>
<style>
.file_button_upload{
width: 160px;
overflow: hidden;
font-size: 0px;
height: 30px;
margin-bottom: -15px;
display: inline-block;
background: url(http://www.festivalbenicomuni.it/wp-content/themes/festival/img/bg_btn.jpg);
border: 3px solid #000;
padding: 6px 0px;
width: 160px;
font-size: 0px;
color: #000;
font-family: 'DINPro-Bold';
text-align: center;
overflow: hidden;
text-indent: -9999px;
}
</style>
<![endif]-->

你也可以使用

http://codemug.com/html/css-hacks-for-ie6ie7ie8ie9-and-ie10/

关于html - 自定义按钮输入类型图像 IE9+,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29601657/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com