ASP.NET VS里怎么使用左右框架嵌套呢?实现功能: 主页而是由两个子页面组的,分左右,左边为主菜单,当点击左边菜单时,在右边的页面显示.

解决方案 »

  1.   

    用框架实现:
    Main.html<html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title></title>
    </head>
    <frameset rows="*,20" cols="*" frameborder="no" border="0" framespacing="0">
      <frameset cols="180,*" frameborder="no" border="0" framespacing="0">
        <frame src="Left.html" name=list marginWidth=0 marginHeight=0 id="leftFrame" frameBorder=0 noResize scrolling=yes longDesc=""/>
        <frame src="Right.html" name="mainFrame" id="mainFrame" />
      </frameset>
      <frame src="Stu_Bottom.html" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" />
    </frameset>
    <noframes>
    noframes>
    </html>
    Left.html
    <htmL>
    <head></head>
    <body>
    <a href="1.aspx">链接1</a>
    <a href="2.aspx">链接2</a>
    <a href="3.aspx">链接3</a></body>
    </html>
    在Main.html页中点击1.aspx和2.aspx等就会链接到相应的页面。