【发布时间】:2020-12-02 19:23:36
【问题描述】:
已经给出了有关如何隐藏 bootstrap 4 自定义选择字段右侧的双箭头的答案,如 here 所示。生成的选择框仍将右侧的文本隐藏在现在不透明的箭头后面。我希望能够在为移动设备设计的显示器上使用与左侧一样多的右侧空间。换句话说,可以进行哪些额外的更改以使文本在选择框的最右侧可见。您可以通过调整屏幕宽度来查看问题。
.custom-select{
background-image: none !important;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet"/>
<div class="form-group">
<div class="col-8">
<div class="input-group">
<select class="custom-select">
<option>end of text string will hide behind opaque double arrow around here</option>
<option>2</option>
</select>
</div>
</div>
</div>
【问题讨论】:
标签: javascript html css bootstrap-4