Resize the input type=“file” browse button in firefox?

后端 未结 6 1028
庸人自扰
庸人自扰 2021-02-08 00:19

Is there anyway using CSS or JS that you can resize the input type=\"file\" Browse button in firefox?

I know you cannot change the text of the button but all I need to d

6条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-08 01:02

    As for me, Zhenya Shevchenko gave one of the best working solutions. Using his method, we can create cross-browser file input button: http://jsfiddle.net/JHcFR/

    .fileInput { overflow: hidden; width: 500px; height: 200px; background: red; } .fileInput input { font-size: 200px; opacity: 0; float: right; filter: alpha(opacity=0); /*IE*/ }

提交回复
热议问题