减少Twitter Bootstrap输入字段的高度? [英] Decrease Twitter Bootstrap input field's height?

查看:89
本文介绍了减少Twitter Bootstrap输入字段的高度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的表单中,我想减少我的输入字段的高度。

In my form I would like to decrease my Input field's height.

我知道有输入小,输入介质类控制输入字段的宽度,但是有什么类似的控制高度吗?

I know there are input-small, input-medium classes which control input field's width, but is there any thing similar for controlling height?

我找不到任何内容,如果没有,我该如何重写默认值?

I couldn't find any and if there isn't how do I go about overriding the defaults?

推荐答案


我找不到任何,如果没有如何覆盖默认值?

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]

Bootstrap's input field height is defined using attribute selectors e.g. input[type="text"], input[type="password"]

您的样式以相同的选择器格式,或使用类等。

You can override it with your styles in the same selector format, or uses classes and such.

.mystyle input[type="text"] {
   height: 14px;
   font-size: 10px;
   line-height: 14px;
}

这篇关于减少Twitter Bootstrap输入字段的高度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆