<分区>
<分区>
我在一个元素中使用 Select2,它的样式从其他 bootstrap(ed) 组件中脱颖而出。我个人喜欢 select2 的外观,但需要保持一致性。在早期版本中,我使用了来自 here 的 select2 boostrap css 3
这在 Select2 4.0 上不起作用,有人有任何想法或提示吗?至少,我想调整 Select2 的高度。
非常感谢...
最佳答案
只需使用 https://select2.github.io/examples.html 中的常规 select2并使用 !important
声明覆盖样式,例如
.select2-container .select2-selection--single {height: 50px !important;}
关于Jquery Select2 4.0 Bootstrap 样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30402730/