ASP.Net Menu Control - Horizontal - Not Showing Sub Options

后端 未结 2 2029
温柔的废话
温柔的废话 2021-01-20 02:26

I am trying to use the ASP:Menu control. It is rather simple. I want it Horizontal. Each of those first level items will have Sub items. I can get it Horizontal and when

相关标签:
2条回答
  • 2021-01-20 03:01

    Sounds like a problem I had with Menu, but that only occurred in IE8... IE8 handled the z-index wrong. Simple to fix luckily:

    <asp:Menu ID="mnuChoices" runat="server" Orientation="Horizontal" 
                DataSourceID="dsSiteMap">
        <DynamicMenuStyle CssClass="submenu" />
    </asp:Menu>
    

    css:

    .submenu {z-index: 9999; /* IE8 FIX for asp:Menu */}
    
    0 讨论(0)
  • 2021-01-20 03:01

    This should help:

    http://weblogs.asp.net/bleroy/archive/2009/03/23/asp-menu-fix-for-ie8-problem-available.aspx

    cheers

    0 讨论(0)
提交回复
热议问题