欢迎光临
我们一直在努力

ASP.NET 2.0,写无限级下拉菜单不再难!!-.NET教程,Asp.Net开发

建站超值云服务器,限时71元/月

<%@ page language="c#" %>

<html>

<!– asp.net 2.0的例子 –>

<head runat="server">

</head>

<body>

<form runat="server">

<h3>下拉菜单的例子</h3>

<!– use declarative syntax to create the –>

<!– menu structure. submenu items are –>

<!– created by nesting them in parent menu –>

<!– items. –>

<asp:menu id="navigationmenu"

disappearafter="2000"

staticdisplaylevels="2"

staticsubmenuindent="10"

orientation="horizontal"

font-names="arial"

target="_blank"

runat="server">

<staticmenuitemstyle backcolor="#dddddd"

forecolor="red"/>

<statichoverstyle backcolor="#dddddd"/>

<dynamicmenuitemstyle backcolor="#eeeeee"

forecolor="red"/>

<dynamichoverstyle backcolor="#dddddd"

forecolor="black"/>

<items>

<asp:menuitem navigateurl="http://dotnet.aspx.cc/"

text="首页"

tooltip="首页">

<asp:menuitem navigateurl="http://dotnet.aspx.cc/showlist.aspx?id=1"

text="asp.net 栏目"

tooltip="asp.net 栏目">

<asp:menuitem navigateurl="classical.aspx"

text="asp.net 最新文章"

tooltip="asp.net 最新文章"/>

<asp:menuitem navigateurl="rock.aspx"

text="asp.net 问与答"

tooltip="asp.net 问与答">

<asp:menuitem navigateurl="classical.aspx"

text="asp.net 最新文章"

tooltip="asp.net 最新文章"/>

<asp:menuitem navigateurl="classical.aspx"

text="asp.net 最新文章"

tooltip="asp.net 最新文章"/>

</asp:menuitem>

<asp:menuitem navigateurl="jazz.aspx"

text="jazz"

tooltip="jazz"/>

</asp:menuitem>

<asp:menuitem navigateurl="movies.aspx"

text="movies"

tooltip="movies">

<asp:menuitem navigateurl="action.aspx"

text="action"

tooltip="action">

<asp:menuitem navigateurl="drama.aspx"

text="drama"

tooltip="drama"/>

</asp:menuitem>

<asp:menuitem navigateurl="drama.aspx"

text="drama"

tooltip="drama"/>

<asp:menuitem navigateurl="musical.aspx"

text="musical"

tooltip="musical"/>

</asp:menuitem>

</asp:menuitem>

</items>

</asp:menu>

</form>

</body>

</html>

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » ASP.NET 2.0,写无限级下拉菜单不再难!!-.NET教程,Asp.Net开发
分享到: 更多 (0)

相关推荐

  • 暂无文章