Jquery Select2 4.0 引导样式

w2o*_*ves 0 css jquery jquery-select2

我在一个项目中使用 Select2,它的样式从其他 bootstrap(ed) 组件中脱颖而出。就我个人而言,我喜欢 select2 的外观,但需要创建一致性。在早期版本中,我从这里使用了 select2 boostrap css 3

这在 Select2 4.0 上不起作用,有人有任何想法或提示吗?至少,我想调整Select2的高度。

非常感激...

小智 6

只需使用https://select2.github.io/examples.html中的常规 select2并使用声明覆盖!important样式,例如

.select2-container .select2-selection--single {height: 50px !important;}
Run Code Online (Sandbox Code Playgroud)