Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/77.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 设置输入类型高度的样式=';文件';铬元素_Html_Css_Forms_Google Chrome - Fatal编程技术网

Html 设置输入类型高度的样式=';文件';铬元素

Html 设置输入类型高度的样式=';文件';铬元素,html,css,forms,google-chrome,Html,Css,Forms,Google Chrome,我有一个类型为file的html表单输入: <input type='file' /> 这是一个 是不是要用chrome来纪念身高。似乎很简单,但添加!重要信息或内联添加高度不会产生任何影响 N.b.关于如何设置文件输入的样式,有很多问题,但是没有一个问题能够解决如何在chrome中使用高度属性的问题。它可以在其他浏览器中正常工作 我也知道增加字体大小会使输入更大,但这不是一个有吸引力的解决方案 现在可以在chrome中设置高度了吗?这是chrome通过伪代码理解的- 我已经更新

我有一个类型为
file
的html表单输入:

<input type='file' />
这是一个

是不是要用chrome来纪念身高。似乎很简单,但添加
!重要信息
或内联添加高度不会产生任何影响

N.b.关于如何设置文件输入的样式,有很多问题,但是没有一个问题能够解决如何在chrome中使用高度属性的问题。它可以在其他浏览器中正常工作

我也知道增加字体大小会使输入更大,但这不是一个有吸引力的解决方案


现在可以在chrome中设置高度了吗?

这是chrome通过伪代码理解的-

我已经更新了我的链接-

  input[type="file"]{
        height:50px;
  }

    input[type="file"]::-webkit-file-upload-button{
        height:50px;
  }

查找更改-

我使用的是Chrome(40.0.2214.111 m)和-您使用的是什么版本?@maaarghk在dom中可能更大,但不是直观的。答案得到3票赞成,问题得到反对票。我真的不明白伪css链接是一个很好的资源
  input[type="file"]{
        height:50px;
  }

    input[type="file"]::-webkit-file-upload-button{
        height:50px;
  }