我的Asp.net mvc3网络应用程序里有以下JMenu:
<ul id="jMenu"> <li><a class="fNiv">Home</a>
<!-- Do not forget the "fNiv" class for the first level links !! -->
<ul> <li class="arrow"></li>
<li><a>Category 1.2</a>
<ul> <li><a>Category 1.3</a></li>
<li><a>Category 1.3</a></li>
But if i replace the <a class="fNiv">Home</a>
with <div class="fNiv">@Html.ActionLink("Home", "Index", "Home")</div>
, then the Jmenu will not show the submenus when i move the mouse over the Home action link.
So is there a way to let the Jmenu works on @htmk.actionlink same as for the links
BR
<强> : :: 更新 : - 强 >
我改变了我的Html。 动作链接成为
<li>@Html.ActionLink("Home", "Index", "Home", new { @class="fNiv" }, null)
但当我移动鼠标到菜单上时, 我发现错误如下:
Microsoft JScript runtime error: ULWidth is undefined on the following code:-
ChildList.css({top:position.top,left:position.left+ULWidth,width:ULWidth}).children().css({width:ULWidth