Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/38.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 引导3输入填充问题_Html_Css_Forms_Twitter Bootstrap_Input - Fatal编程技术网

Html 引导3输入填充问题

Html 引导3输入填充问题,html,css,forms,twitter-bootstrap,input,Html,Css,Forms,Twitter Bootstrap,Input,我有一个Bootstrap3网页,我试图增加输入的填充。我的代码如下所示: input[type='text'], input[type='password'], input[type='email'], textarea { padding-top:18px; padding-bottom:18px; -webkit-appearance: none; } 但是在Firefox上,文本丢失了。发生了什么?引导设置了默认高度。您只需添加height:auto: input[typ

我有一个Bootstrap3网页,我试图增加输入的填充。我的代码如下所示:

input[type='text'],
input[type='password'],
input[type='email'],
textarea
{
  padding-top:18px;
  padding-bottom:18px;
  -webkit-appearance: none;
}


但是在Firefox上,文本丢失了。发生了什么?

引导设置了默认高度。您只需添加
height:auto

input[type='text'],
输入[type='password'],
输入[type='email'],
文本区
{
填充顶部:18px;
垫底:18px;
-webkit外观:无;
高度:自动;
}