我遇到一个问题,文本在选择菜单中悬停的 X“清除”按钮下重叠。在右侧添加填充并不是解决方案,因为它将图标推到框外。我正在使用此处找到的 Select2 JS 库 https://select2.org/ 和 Bootstrap 5
$("#search_bar").select2({
theme: 'bootstrap-5',
placeholder: "Some text",
allowClear: true
});
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号