开发者

How to change the width of an HTML upload field with CSS?

开发者 https://www.devze.com 2022-12-11 21:04 出处:网络
I can change the width of an upload field with the size attribute: &开发者_StackOverflow中文版lt;input type=\"file\" size=\"20\">

I can change the width of an upload field with the size attribute:

&开发者_StackOverflow中文版lt;input type="file" size="20">

But CSS's width, which works fine for regular input fields and other forms controls, seems to have no effect here, even on Firefox:

<input type="file" style="width: 20em">

Is there another way to accomplish this?


I'm not sure if this will help but this article seems to go quite in-depth into various ways of styling a file-input:

http://www.quirksmode.org/dom/inputfile.html

0

精彩评论

暂无评论...
验证码 换一张
取 消