我的站点菜单仅出现一会儿,然后消失。即使将鼠标悬停在它上面,它也会在用户没有时间进行选择之前消失。有没有一种方法可以扩展此范围,最好使用CSS,但可以尝试使用php。
HTML:
<div class="module widget-handle
mobile-toggle right
visible-sm visible-xs"><i
class="fafa-bars"></i>
</div><div class="module-group
right">
<div class="module left">
<div class="collapse navbar-
collapse navbar-ex1-
collapse"><ul id="menu"
class="menu"><li id="menu-item.
1496" class="menu-item menu-item.
type-post_type menu-
item-object-page menu-item-home
current-menu-item
page_item page-item-19
current_page_item menu-item.
has-children menu-item-1496
dropdown active"><a
title="Home"
href="https://adsler.co.uk/">Home
</a>.
<span class="dropdown-toggle
shapely-dropdown" data-
toggle="dropdown"><i class="fa fa-
angle-down" aria-
hidden="true"></i></span><ul
role="menu" class="
dropdown-menu">
<li id="menu-item-1502" class="fa
fa-user menu-item
menu-item-type-post_type menu-
item-object-page menu-
item-1502"><a title="Create Adsler
Account"
href="https://adsler.co.uk/create.
account/">Create
Adsler Account</a></li>
<li id="menu-item-1504" class="fa
fa-tag menu-item
menu-item-type-post_type menu-
item-object-page menu-
item-1504"><a title="For Sale"
href="https://adsler.co.uk/for.
sale/">For Sale</a></li>
尝试过CSS:
.dropdown-menu {transition.
duration: 40s;}