Home  >  Q&A  >  body text

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?

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.

过去多啦不再A梦过去多啦不再A梦2697 days ago1309

reply all(4)I'll reply

  • 漂亮男人

    漂亮男人2017-05-31 10:43:59

    Use F12, check the dom, elements and you will know how to write hover

    reply
    0
  • 天蓬老师

    天蓬老师2017-05-31 10:43:59

    If you have too many requirements, you can only simulate it yourself, use

    <p> 
        <li></li>
        <li></li>
        <li></li> 
    </p>

    With this structure, you can play however you want

    reply
    0
  • PHP中文网

    PHP中文网2017-05-31 10:43:59

    Then you can try other third-party plug-ins such as xeditable

    reply
    0
  • 阿神

    阿神2017-05-31 10:43:59

    bootstrap-select will convert the option style into
    <ul>

    <li></li>
    <li></li>
    <li></li> 

    </ul>

    Just set a :hover css style for li

    reply
    0
  • Cancelreply