cor*_*114 4 html css bootstrap-4
Bootstrap 4 选择添加图像缩略图的选项不起作用,有什么解决方案吗?
谢谢
<select class="form-control" id="exampleFormControlSelect1">
<option><img src="/assets/images/platform/abs.png">ABS-01</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
Run Code Online (Sandbox Code Playgroud)
您无法在选择中添加图标或图像。但是一个名为bootstrap-select的插件可以帮助你。
该插件使用的图标直接从 bootstrap 提供的 Glyphicons 加载。
Git 项目可以在这里找到: https: //github.com/snapappointments/bootstrap-select
您还可以在这里找到该功能的现场演示:http ://silviomoreto.github.io/bootstrap-select