注册 登录
编程论坛 ASP.NET技术论坛

对于<frameset>标签的疑惑

zhypengjw 发布于 2012-08-28 16:06, 773 次点击
</head>
<frameset id="frame1" rows="136,26,*,24" cols="*" framespacing="0" frameborder="no" border="0"><%-- Onbeforeunload="clearall();"--%>
  <frame src="frames/TopF.aspx" name="topF" scrolling="No" noresize="noresize" id="topF" title="topF" />
  <frame src="frames/Daohang_hengxiang.aspx" scrolling="No" noresize="noresize" id="Daoh">
  <frameset id="frame2" rows="347*" cols="215,11,*" noresize="noresize" framespacing="0" frameborder="no" border="0">
        <frame  src="frames/menu_left.aspx" name="leftFrame" noresize="noresize" id="menu" />
        <frame src="frames/suofang.html" noresize="noresize">
        <frame src="frames/TotalView.html" name="workFrame" id="workFrame" noresize="noresize"/>
    </frameset>
  <frame src="frames/bottom.html" title="suofang" />
</frameset>
<noframes>
</noframes>
</html>
上面是我读的一个Main.aspx的页面设计,最后的<noframes>标签有啥用呢?是使框架不被适用?那可明明就是用<frameset>写的框架。<noframes>标签理论上是在<body>标签中,但是<body>与<frameset>又不能同时使用,请大家帮忙解惑,这段代码该怎么调整?
3 回复
#2
crazybug2012-08-30 08:37
<noframes>是你的浏览器如果不支持框架的时候显示的提示
这个w3school中有说啊
<body>标签不能和<frameset>标签同时使用,但是如果添加了<noframes>标签就必须把这段文字添加在Body中
像这样
<noframes>
<body>您的浏览器无法处理框架</body>
</noframes>
#3
zzqqrr2012-09-19 11:40
是不能同用要放在noframes里
#4
LOVESD2012-10-12 21:07
<noframes>
    <body>
    </body>
</noframes>
<noframe>中可以添加一些语句,当浏览器不支持框架的时候,就会显示<noframe>中的文本。
如果浏览器支持〈frame〉框架,<noframe>中的文字就不会显示。
1