javascript - How to modify the style of select in html, and change the option style when the mouse is hovering. Is there any plug-in?
过去多啦不再A梦2017-05-31 10:41:59
0
4
1364
I checked that there are select2 and bootstrap-select plug-ins, but they don’t have the function of changing the style by floating. Please give me some advice.
Use F12, check the dom, elements and you will know how to write hover
If you have too many requirements, you can only simulate it yourself, use
With this structure, you can play however you want
Then you can try other third-party plug-ins such as xeditable
bootstrap-select will convert the option style into
<ul>
</ul>
Just set a :hover css style for li