【发布时间】:2017-11-06 14:10:54
【问题描述】:
我想为 bootstrap 的 select 元素设置样式,如下图所示:
但不幸的是无法更改箭头的颜色。
#test{
border: 1px solid #dd6592;
border-radius: 0px;
text-align: center;
width:20%;
font-size: 16px;
margin-bottom: 20px;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<select class="form-control" id="test">
<option>Test</option>
<option>Test</option>
<option>Test</option>
</select>
【问题讨论】:
-
你能告诉我们你到目前为止尝试过的代码吗?
-
@nafi-pantha .. 你能把你的代码贴在这里吗?,
标签: javascript jquery html css twitter-bootstrap-3