2011年11月7日星期一

ASP.NET Menu Control rendering problem in Chrome


<asp:Menu ID="NavigationMenu" runat="server" Orientation="Horizontal" />

The default layout setting of Menu control will rendering a blank row on top of the menu item which looks like extra padding. This happens to Google Chrome.


To get rid of this, just set SkipLinkText value to ""(empty string):



<asp:Menu ID="NavigationMenu" runat="server" Orientation="Horizontal" SkipLinkText="" />

For more details, please read:

ASP.NET Menu Control Accessibility Feature renders incorrectly in Safari and Chrome Browsers.


没有评论:

发表评论