悬停后关闭下拉菜单吗?

时间:2018-08-20 23:11:43

标签: javascript

寻找一个简单的脚本,该脚本会在单击时悬停时打开的下拉菜单中关闭...非常感谢!

<li><a href="#"><i class="fa fa-th-large"></i>Product images <span class="wsarrow"></span></a>
    <div class="wsmegamenu clearfix ">
    <div class="container">
    <div class="row">

    <div class="col-lg-4 col-md-12 col-xs-12">
    <h3 class="title">Product Features</h3>
    <div class="fluid-width-video-wrapper"><img src="{T_THEME_PATH}/navbar_fancy/images/image02.jpg" alt="" /> </div>
    <p class="wsmwnutxt">Lorem Ipsum is dummy text of the printing specimen book. It has survived not only five centuries, but also typesetting in the the contantly with desktoncluding.</p>
    </div>

    <div class="col-lg-4 col-md-12 col-xs-12">
    <h3 class="title">Blog Article </h3>
    <div class="fluid-width-video-wrapper"><img src="{T_THEME_PATH}/navbar_fancy/images/image03.jpg" alt="" /> </div>
    <p class="wsmwnutxt">Lorem Ipsum is dummy text of the printing specimen book. It has survived not only five centuries, but also typesetting in the the contantly with desktoncluding.</p>
    </div>

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

1 个答案:

答案 0 :(得分:0)

不确定您的代码与您的问题有什么关系,但是请听一听:https://www.w3schools.com/howto/howto_css_dropdown.asp

不需要JS。