我有一个 bootstrap 3 网页,我试图在其中增加输入的填充。我的代码如下所示:
input[type='text'],
input[type='password'],
input[type='email'],
textarea
{
padding-top:18px;
padding-bottom:18px;
-webkit-appearance: none;
}
但是在 Firefox 上,文本丢失了。发生了什么事?
最佳答案
Bootstrap 设置默认高度。你只需要添加 height: auto
:
input[type='text'],
input[type='password'],
input[type='email'],
textarea
{
padding-top:18px;
padding-bottom:18px;
-webkit-appearance: none;
height: auto;
}
关于html - Bootstrap 3 输入填充问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24090834/