开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜