css - 如何减少 bootstrap 3 中 SELECT 的宽度和高度

标签 css twitter-bootstrap

我怎样才能结合 form-control 和 input-mini 来得到一个宽度大约为 60px 高度大约为 20px 的 SELECT?

<select id="RoleSelect" class="form-control input-mini { width: 60px; }" runat="server">

我创建了一个 fiddle 。 https://jsfiddle.net/baileyjames9/c8be067k/2/

最佳答案

你可以为此使用 style 属性,或者在另一个文件中为 form-control input-mini 定义 css。

    .form-control.input-mini {
    width: 60px;
    height: 20px;
    }

关于css - 如何减少 bootstrap 3 中 SELECT 的宽度和高度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29575697/

相关文章:

javascript - Chrome 切断边框和其他视觉故障

html - 使用 Bootstrap 4 将按钮居中

html - 为什么 img 标签会超出其宽度?

html - 如何对齐文本居中和右

html - 我们如何删除 Angular js中的方括号[]和双引号 ""?

Jquery Bootgrid - 以编程方式更改当前页面

button - 使用 href 时无法获得 Bootstrap 按钮以对齐中心

javascript - Bootstrap tokenfield 和 Twitter typeahead 下拉菜单没有样式

javascript - Bootstrap Popover parent ?

html - 当屏幕达到一定宽度(像素)时显示图像