下拉菜单无法正常工作 [英] dropdown menu not working correctly

查看:86
本文介绍了下拉菜单无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用一个下拉菜单,该下拉菜单由我的项目中的站点地图填充.
除最后一个节点外,所有菜单均正常工作!它显示了前两个项目,然后其余的项目被压缩",因此您可能看不到这些项目,但是如果单击它们,则可以正确链接到外部链接.
你能帮忙吗?
这是站点地图:

I am using a drop-down menu populated by a sitemap in my project.
All of the menu works correctly, except for the last node! It shows the first two items, and then the rest are ''compressed'' so that you may not see the items, but if clicked on, it links correctly to external links.
Can you help?
Here is the sitemap:

<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" enableLocalization="true" >
  <siteMapNode title="" description="">
    <siteMapNode title="Home"   description="Contains Home Page" url="~/Default.aspx">  </siteMapNode>
    <siteMapNode  title="Options"  description="">
      <siteMapNode url="~/AL.aspx" title="AL"  description="" ></siteMapNode>
      <siteMapNode url="~/RC.aspx" title="RC"  description="" ></siteMapNode>
      <siteMapNode url="~/NC.aspx" title="NC"  description="" ></siteMapNode>
    </siteMapNode>
    <siteMapNode title="Services"  description="">
      <siteMapNode url="~/FP.aspx" title="FP"  description="" ></siteMapNode>
      <siteMapNode url="~/WhatToExpect.aspx" title="What to expect"  description="" ></siteMapNode>
    </siteMapNode>
    <siteMapNode url="Calendar.aspx" title="Calendar"  description="" ></siteMapNode>
    <siteMapNode title="About Us"  description="">
      <siteMapNode url="~/ContactUs.aspx" title="Contact Us"  description="" ></siteMapNode>
      <siteMapNode url="~/Directions.aspx" title="Directions"  description="" ></siteMapNode>
      <siteMapNode url="~/SB.aspx" title=" S"  description=""></siteMapNode>
      <siteMapNode url="~/BMF.aspx" title="B "  description=""></siteMapNode>
      <siteMapNode url="~/EO.aspx" title="EO"  description="" ></siteMapNode>
      <siteMapNode url="~/H.aspx" title="H"  description="" ></siteMapNode>
    </siteMapNode> 
    <siteMapNode title="CR" description="">
        <siteMapNode url="link1" title="FCBC"  description="" ></siteMapNode>
        <siteMapNode url="link2" title="ES"  description="" ></siteMapNode>
        <siteMapNode url="link3" description="LSC"></siteMapNode>
        <siteMapNode url="link4" description=""></siteMapNode>
        <siteMapNode url="link5" description="FVP"></siteMapNode>
        <siteMapNode url="link6" description="FLHTS"></siteMapNode>
        <siteMapNode url="link7" description="EZ"></siteMapNode>
        <siteMapNode url="link8" description="Ogs"></siteMapNode>
        <siteMapNode url="link9" description="BPS"></siteMapNode>
      </siteMapNode>
  </siteMapNode>
</siteMap>


这是网站管理员中创建菜单的代码:


and here is the code in the sitemaster that creates menu:

 <div class="menu">
<asp:Menu ID="MainMenu" runat="server" Orientation="Horizontal"
   DataSourceID="SiteMapDataSource1"
   DynamicEnableDefaultPopOutImage="False" SkipLinkText=""  
   StaticEnableDefaultPopOutImage="False"
   Height="300px" IncludeStyleBlock="False" MaximumDynamicDisplayLevels="15" 
   DynamicMenuStyle-Height="150px">
<StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
<StaticHoverStyle BackColor="White" ForeColor="Black" />
<DynamicHoverStyle BackColor="White" ForeColor="Black" />
<DynamicMenuItemStyle ItemSpacing="2px" HorizontalPadding="5px"  
     VerticalPadding="2px" />
</asp:Menu<asp:SiteMapDataSource ID="SiteMapDataSource1"  runat="server" 
         ShowStartingNode="false" />
</div>


我在link3节点中发现的唯一不同之处是它的链接中有一些破折号...可以吗?不,...我尝试移动没有任何子节点的节点,该子节点不起作用.尝试修改URL破折号的节点...不起作用.


The only thing I found different in node with link3 is that it has some dashes in the link...could that be it? Nope...I tried moving the node that doesn''t have any subnodes, that didn''t work. Tried revising the node whose URL has a dash...that didn''t work. It is NOT due to Javascript.

推荐答案

如果您在此页面中使用过,请检查您的css或js代码....假设您未使用这些代码意味着...检查所有链接属性是否可见....

再次,您得到该概率意味着更好–删除最后一个节点...,然后重新插入...可能会正常工作...

谢谢你:)
快乐编码:):)
Check your css or js code if u using in this page....suppose u didn''t use those codes means...check all link property are visible true or not....

Again u getting this prob''s means Better u Delete that last node...and Re-insert again...May be it ll works correctly...

Thank u :)
Happy Coding:) :)


在链接3-9中没有显示TITLE参数!哦!很抱歉浪费时间.
there is NO TITLE parameter to display in link 3-9! OOOPs! sorry for wasting time.


这篇关于下拉菜单无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆