我正在使用cssfriendly最新版本,但在applyinf Orientation =“Horizntal”时,我的manu以Verticle格式显示。
以下是我的.ASPX代码
<asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1" CssSelectorClass="PrettyMenu"
StaticDisplayLevels="2" Orientation="Horizontal" />
站点地图代码
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="default.aspx" title="Home" description="Home page for site">
<siteMapNode url="about/default.aspx" title="About" description="About Us" />
<siteMapNode url="help/default.aspx" title="Help" description="FAQs and SiteMap">
<siteMapNode url="help/faq.aspx" title="FAQ" description="Frequently Asked Questions" />
<siteMapNode url="help/sitemap.aspx" title="Sitemap" description="Map of Site" />
</siteMapNode>
</siteMapNode>
</siteMap>
请让我建议任何解决此问题的方法。
答案 0 :(得分:0)
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="default.aspx" title="Home" description="Home page for site">
<siteMapNode url="help/default.aspx" title="Help" description="FAQs and SiteMap">
<siteMapNode url="help/faq.aspx" title="FAQ" description="Frequently Asked Questions" />
<siteMapNode url="help/sitemap.aspx" title="Sitemap" description="Map of Site" />
</siteMapNode>
</siteMapNode>
<siteMapNode url="about/default.aspx" title="About" description="About Us" />
</siteMap>
请尝试这个,这将水平显示两个菜单项“Home”和“About”,并且他们的孩子是垂直的。