我无法更改输入按钮的大小。谁能解释一下为什么?
#reset{
width: 200px;
height: 100px;
}
<input id="reset" type="button" value="Reset">
最佳答案
默认情况下,输入元素的样式将基于用户操作系统的主题。您必须使用以下内容覆盖它以删除默认值。
input[type="button"]{
-moz-appearance: none;
-webkit-appearance: none;
appearance: none;
}
fiddle :http://jsfiddle.net/rxa60aj6/1/
关于html - 为什么我的输入按钮不改变高度?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31601076/