ASP.NET 2.0, write unlimited level drop menu is no longer difficult! !

xiaoxiao2021-03-06  61

ASP.NET 2.0 provides a Menu class that can easily create a drop-down menu in horizontal or vertical directions. The following is an example:

View example

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

Example of drop-down menu

I 's ITEMS. -> < asp: menu id = "NavigationMenu" disappearafter = "2000" staticdisplaylevels = "2" staticsubmenuindent = "10" orientation = "Horizontal" font-names = "Arial" target = "_ blank" runat = "server">

< / asp: menuitem>

转载请注明原文地址:https://www.9cbs.com/read-112515.html

New Post(0)