调整输入类型=“文件”浏览按钮在firefox? [英] Resize the input type="file" browse button in firefox?
本文介绍了调整输入类型=“文件”浏览按钮在firefox?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有使用CSS或JS,你可以调整大小的输入type =file浏览按钮在firefox?
Is there anyway using CSS or JS that you can resize the input type="file" Browse button in firefox?
我知道你不能改变文本按钮,但我需要做的是使这个按钮更宽的firefox。所以使用-moz css规则将是完美的。
I know you cannot change the text of the button but all I need to do is make this button wider for firefox. So using a -moz css rule would be perfect.
推荐答案
由于安全原因,样式文件输入按钮非常有限。有一些解决方法,但没有一个是完美的。查看QuirksMode上的此帖子:
Styling file input buttons is very limited for security reasons. There are some workarounds, but none are perfect. Check out this post on QuirksMode:
http ://www.quirksmode.org/dom/inputfile.html
这篇关于调整输入类型=“文件”浏览按钮在firefox?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文