我怎么才能去掉select中那个可怕的双箭头呢?关于这篇文章我发现的任何其他答案都不起作用。
<div class="form-group">
<label for="date">Date</label>
<div class"row">
<div class="col-5">
<input.....>
</div>
<div class="col-7">
<div class="input-group">
<select class="custom-select">
<option.....>
</select>
</div>
</div>
</div>
</div>
图片:
我尝试了这些解决方案:
但不起作用。
发布于 2018-03-13 06:59:10
如果您只是想删除箭头,则应该强制为custom-select
类应用背景样式,因为这些箭头被设置为背景。尝试下面的代码作为参考。
.custom-select{
background: none !important;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"/>
<div class="form-group">
<label for="date">Date</label>
<div class"row">
<div class="col-5">
<input.....>
</div>
<div class="col-7">
<div class="input-group">
<select class="custom-select">
<option.....>
</select>
</div>
</div>
</div>
</div>
希望这能有所帮助
发布于 2018-03-13 06:58:41
将此代码添加到CSS文件中:
.custom-select {
background: none;
}
发布于 2018-03-13 06:57:39
将css更改为:
.custom-select{
background:#fff;
}
https://stackoverflow.com/questions/49245610
复制相似问题