【问题标题】:Jquery Select2 4.0 Bootstrap Styling [duplicate]Jquery Select2 4.0引导样式[重复]
【发布时间】:2015-05-22 17:36:23
【问题描述】:

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

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

非常感谢...

【问题讨论】:

    标签: jquery css jquery-select2


    【解决方案1】:

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

    .select2-container .select2-selection--single {height: 50px !important;}
    

    【讨论】:

    • 谢谢,按广告宣传。
    猜你喜欢
    • 1970-01-01
    • 2015-08-27
    • 2015-11-03
    • 1970-01-01
    • 2021-07-27
    • 2014-11-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多