假如某一sitemapnode如下
<siteMapNode title="资源" roles="*">
  <siteMapNode title="产品1" url="Default2.aspx"/>
  <siteMapNode title="产品2" url="aaa1.aspx"/>
  <siteMapNode title="产品3" url="aaa2.aspx"/>
</siteMapNode>
刚好在“产品3”那位置是页面中的gridview的话,就只能看到“产品1”和“产品2”注:此gridview放在table里,不在table里的时候没见到此问题请问会是我table使用不合适吗?我觉得table应该影响不到master框架啊,而且table里不是gridview里的内容也不会遮住node的。
怪事

解决方案 »

  1.   

    相对定位。。楼上可以说的详细点吗?
    我试过了,gridview(而不是整个table)的位置往下挪一点的话就能多露出一点node来,但我gridview的位置挪动了的话页面会变得非常难看
      

  2.   

    master文件结构为:
    <table>
        <tr><td><asp:Menu >这里设定了Menu的样式</asp:Menu></td></tr>
        <tr><td><asp:contentplaceholder id="ContentPlaceHolderContent" runat="server"/></td></tr>
        ...
    </table>table里有办法可以让Menu一定显示在content之上吗?
      

  3.   

    设置他们Style的Z-Index属性试试
    以前用ASP的menu出现过各种稀奇古怪的问题,现在干脆就不用了
      

  4.   

    to philoo(小毛驴尥蹶子) 我在具体页面中用
    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderContent" Runat="Server">
        <table align=center width=100% style="position:absolute; z-index:-1;">
    后实现了我要的功能,但是我这个页面中的table上面会被白色覆盖掉半行内容,master里menu和contentplaceholder之间也没什么内容啊
      

  5.   

    仔细去看了一下,在gridview里都设置了style="z-index:100;"可我在
    http://hewei.org/?action=show&id=161
    里看到说没设position:absolute; 设置z-index也不起作用才对的啊把gridview的z-index这删除就解决了,先结贴。