在我的表单中,我想降低输入字段的高度。
我知道有控制输入字段宽度的 input-small、input-medium 类,但是有没有类似的东西可以控制高度?
我找不到任何东西,如果找不到我该如何覆盖默认值?
最佳答案
I couldn't find any and if there isn't how do I go about overriding the defaults?
Bootstrap 的输入字段高度是使用属性选择器定义的,例如input[type="text"], input[type="password"]
您可以使用相同选择器格式的样式覆盖它,或使用类等。
.mystyle input[type="text"] {
height: 14px;
font-size: 10px;
line-height: 14px;
}
关于html - 降低 Twitter Bootstrap 输入字段的高度?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13754536/