这是我的代码:
<div class="collapse navbar-collapse navbar-responsive-collapse">
<?php wp_bootstrap_main_nav(); // Adjust using Menus in Wordpress Admin ?>
<div class="lng"> <?php
echo do_shortcode('[sz-gtranslate mode="V" language="it_IT" automatic="yes"/]');
?></div></div>
这是我试图检索子菜单的CSS代码
ul.nav li:hover ul.dropdown-menu {
visibility: visible;
display: block;
}
ul#menu-top-menu li:hover ul.dropdown-menu{
visibility: visible;
display: block;
}
注意:当我以小分辨率(480px到720px +)打开网站时,此代码有效