semantic-ui dropdown menu do not work

后端 未结 7 1338
攒了一身酷
攒了一身酷 2020-12-09 01:42

I have been trying to build a menu using Semantic-UI. I can\'t get the dropdown menus to work at all. I took a copy of the page Menu examples and pulled out everything excep

相关标签:
7条回答
  • 2020-12-09 02:08

    As it was already mentioned, you can either:

    • Initialize your dropdown with Javascript or
    • Use simple class.

    There is one very important difference between those two ways: using simple class, you do not require Semantic-UI Javascript for your dropdown to work. The simple class uses :hover selector.

    Please note that using simple class (not Javascript initialization) won't give you nice dropdown effects.

    So the following code will show dropdown menu without Semantic-UI Javascript in your page:

    <div class="ui simple dropdown item">
    
    0 讨论(0)
提交回复
热议问题