开发者

Anchor tag inside an <li> event triggering issue

开发者 https://www.devze.com 2023-03-26 05:33 出处:网络
I have a horizontal menu plugin in which i am adding anchor tag to the <li> in order to get the menu items. i am using onmouseo开发者_开发问答ver eventof anchor tag to get the menu items list. m

I have a horizontal menu plugin in which i am adding anchor tag to the <li> in order to get the menu items. i am using onmouseo开发者_开发问答ver event of anchor tag to get the menu items list. my problem is whenever i am moving mouse over the content i am getting the submenu (ie, the event gets fired) but if i move the mouse on the empty space on the right side of the menu item then the event is not triggering ,when used firebug i found that empty space is belongs to the parent container which is <li>.I cannot use onmouseover of <li> since my logic is different.I just want to expand the size of my anchor tag to the parent <li>. please give me a solution.

<li class="">
    <a href="#" class="accessible" onmouseover="loadSublevelMenu('${url}','${menuVar}',event);">${menuName}&raquo;</a>
</li>


Add the following style to the a tag style="display:block"

0

精彩评论

暂无评论...
验证码 换一张
取 消