ASP.NET菜单控件在Chrome中无法正确显示 [英] ASP.NET Menu Control not showing properly in Chrome
问题描述
亲爱的所有人,
我已经使用ASP.net 2.0菜单控件为我的网页创建了菜单.当在IE 8.0中查看时,这些东西工作正常,但是当我在Chrome上对其进行测试时,它没有显示子菜单横向弹出.而且菜单本身也很有趣.代码如下:
Dear all,
I have created a menu for my web page using ASP.net 2.0 Menu Control. This stuff is working fine when view in IE 8.0 but when I am testing it on Chrome, it is NOT showing the sub-menu poping sideways. Moreover the menu itself is displaying funny. The code is as under:
<asp:Menu ID="Menu1" runat="server" BackColor="#E3EAEB" DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#666666" StaticSubMenuIndent="10px">
<Items>
<asp:MenuItem Text = "Part I" Value="Part I">
<asp:MenuItem Text = "Chapter 1" Value="Chapter 1"></asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem Text = "Part II" Value="Part II">
<asp:MenuItem Text = "Chapter II" Value="Chapter II" />
<asp:MenuItem Text = "Chapter III" Value="Chapter III" />
</asp:MenuItem>
</Items>
<StaticSelectedStyle BackColor="#1C5E55" />
<StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
<DynamicHoverStyle BackColor="#666666" Font-Bold="False" ForeColor="White" />
<DynamicItemTemplate>
<%# Eval("Text") %>
</DynamicItemTemplate>
<DynamicMenuStyle BackColor="#E3EAEB" />
<DynamicSelectedStyle BackColor="#1C5E55" />
<DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
<StaticHoverStyle BackColor="#666666" Font-Bold="False" ForeColor="White" />
<StaticItemTemplate>
<%# Eval("Text") %>
</StaticItemTemplate>
</asp:Menu>
详细信息是从Web.Sitemap文件中获取的,如下所示:
The details are being picked up from Web.Sitemap file which is as under:
<?xml version="1.0" encoding="utf-8" ?>
< sitemap>
< sitemapnode url ="Default.aspx" title ="Home">
< sitemapnode title =产品" description =我们的产品">
< sitemapnode>
url ="Product1.aspx"
title ="ASP.NET TicTacToe"
description ="ASP.NET井字游戏"/>
< sitemapnode>
url ="Product2.aspx"
title ="ASP.NET Checkers"
description ="ASP.NET的检查器"/>
< sitemapnode title =服务" description =我们的服务">
< sitemapnode>
url ="Service1.aspx"
title ="ASP.NET咨询"
description =最佳ASP.NET咨询"/>
< sitemapnode>
url ="Service2.aspx"
title ="ASP.NET培训"
description =最佳ASP.NET培训"/>
请提出一个纠正选项,可以帮助解决这种情况(我不想使用Javascript).
提前谢谢大家.
问候,
IB
<sitemap>
<sitemapnode url="Default.aspx" title="Home">
<sitemapnode title="Products" description="Our Products">
<sitemapnode>
url="Product1.aspx"
title="ASP.NET TicTacToe"
description="Tic Tac Toe for ASP.NET" />
<sitemapnode>
url="Product2.aspx"
title="ASP.NET Checkers"
description="Checkers for ASP.NET" />
<sitemapnode title="Services" description="Our Services">
<sitemapnode>
url="Service1.aspx"
title="ASP.NET Consulting"
description="Best ASP.NET Consulting" />
<sitemapnode>
url="Service2.aspx"
title="ASP.NET Training"
description="Best ASP.NET Training" />
Please suggest a corrective option which can help this situation (I do not want to use Javascript).
Thanking you all in advance.
regards,
IB
推荐答案
检查这些
ASP.NET菜单控件无法在Google Chrome浏览器和Apple Safari浏览器中使用 [ ASP. Safari和Chrome中的NET菜单控制问题 [
Check these
ASP.NET Menu Control Cannot Work in Google Chrome browser and Apple Safari browser[^]
ASP.NET Menu Control Problem in Safari and Chrome[^]
这篇关于ASP.NET菜单控件在Chrome中无法正确显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!