有没有办法设置< input type ='file'的宽度/>在Firefox中显示? [英] Is there a way to set width of <input type='file'/> for showing in Firefox?

查看:188
本文介绍了有没有办法设置< input type ='file'的宽度/>在Firefox中显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所有CSS属性都适用于< input type ='file'/> 不能在FF上工作,但可以在大多数其他浏览器上使用。 p>

只是不能设置宽度。任何解决方案没有JS请求。

解决方案

您是否设置了size属性?

 < input type =filename =datafilesize =40> 

Firefox不支持通过CSS设置大小。


All the CSS attributes apply to the <input type='file'/> don't work on FF, but work on most other browsers.

Just can't even set the width. Any solution? No JS please.

解决方案

Have you set the size attribute?

<input type="file" name="datafile" size="40">

Firefox doesn't support setting the size via CSS.

这篇关于有没有办法设置&lt; input type ='file'的宽度/&gt;在Firefox中显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆