Does jquery select2 plugin support the ability to have alternative row colors in the dropdown list?
问题 I have a dropdown list and I am using the Select2 jquery plugon which works great. One thing i ran into is a use case where each of the items is very long so the text wraps to 3 or 4 lines. I wanted to see if you can style the dropdowns to have alternative row color to make it easier to see where one item ends and another begins when you are scrolling down the list of items. Is this possible? 回答1: Yes, it's possible, in fact it's quite easy, this is how you do it: In your css stylesheet