【发布时间】:2014-04-05 00:47:35
【问题描述】:
Bootstrap 呈现表单选择控件的方式可能存在一些问题。
请参阅下面的图片以了解我的意思。
代码再简单不过了,这告诉我修复可能在 Bootstrap 本身之外。这是我的代码
HTML
<div class="col-sm-4">
<select>
<option>- Jump To -</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
<option>Option 4</option>
</select>
<button class="btn btn-green btn-go">GO</button>
</div>
CSS
select {
color: lighten(@pss-black, 30%);
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
width: 230px;
height: 32px;
padding: 0 34px 0 10px;
border: 1px solid lighten(@pss-black, 80%);
-webkit-border-radius: 0;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
font-size: 1em;
background: @pss-white url('@{img-path}bg_select.png') no-repeat 100% 50%;
-webkit-appearance: none;
-moz-appearance: none;
letter-spacing: normal;
}
任何人都知道如何让 FF 和 IE 看起来像 Chrome 吗?...如果可能,没有额外的插件。我正在尝试使用最少的脚本/图像来构建它(在引导框架中主要是纯 css)
【问题讨论】:
-
管理员 - 感谢您的迁移 :)
标签: css forms twitter-bootstrap