How to change the css of color of select2 tags?

后端 未结 8 1909
萌比男神i
萌比男神i 2020-12-31 06:47

I just started using project for showing multiple tags from a select box and it works great, thanks for the library.

I just need to modify the color or css of the ta

8条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-31 07:27

    Use the formatResultCssClass, containerCssClass and dropdownCssClass options to specify classes in code, the adaptContainerCssClass and adaptDropdownCssClass options to specify classes in markup, or even the containerCss and dropdownCss options to specify inline style in code.

    If you're wondering why you never used those, they weren't properly documented a while ago.

    Reference:

提交回复
热议问题