我想在主页上作一个有top left main的框架
top和left都是永远不动的
而且滚动条要出现在整个页面上
并不是仅仅出现在main上网上查了不少资料
有说用js做的
因为我初学者
看不懂
希望高手给说详细点

解决方案 »

  1.   

    表述有点不太清楚刚
    就是top和left会随着整个滚动条动的
    就跟一个整体页面感觉一样的那种
    我新手
    所以很外行
    请大家见谅
      

  2.   

    top和left会随着整个滚动条动?????????
    如果你让Mian有滚动条不就行了、、
      

  3.   

    就是main上有滚动条
    但是不是整个网页的
    只是右下有滚动条
      

  4.   

    主页面
    ------------------------
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>无标题文档</title>
    </head><body scroll="no">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="50" colspan="2" bgcolor="#CCCCCC">顶部页面</td>
      </tr>
      <tr>
        <td width="200" height="880" valign="top" bgcolor="#CCFFCC">左侧页面</td>
        <td valign="top">
    <iframe src="main.html" height="100%" width="100%"></iframe>
    </td>
      </tr>
    </table>
    </body>
    </html>--------------------------------
    mian页面的
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>无标题文档</title>
    </head><body>
    <p>主页面
        </p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
    <p>&nbsp;</p>
        <p>&nbsp;</p><p>&nbsp;</p>
        <p>&nbsp;</p><p>&nbsp;</p>
        <p>&nbsp;</p><p>&nbsp;</p>
        <p>&nbsp;</p><p>&nbsp;</p>
        <p>&nbsp;</p><p>&nbsp;</p>
        <p>&nbsp;</p><p>&nbsp;</p>
        <p>&nbsp;</p><p>&nbsp;</p>
        <p>&nbsp;</p><p>&nbsp;</p>
        <p>&nbsp;</p>
    </body>
    </html>试试
      

  5.   

    那你用frame还有何意义呢.还不如不用框架,所有的都做在一起.一般唯避之不及的滚动条,你偏偏要加上.
      

  6.   

    用iframe也不行, 你怎样保证iframe的高度随着全局滚动条往下拖而不断增长.总之,我以为LZ的要求是"蛮横"的"不明就里"的.