"的话就打不开框架页?", "upDate": "2021-05-28T12:28:12+08:00" }

为什么框架页中如果加了"..."的话就打不开框架页?

oas 2004-11-06 02:29:34
为什么框架页中如果加了"<body>...</body>"的话就打不开框架页?

代码如下:

<BODY>
<frameset cols="120,*" border="0" framespacing="0" frameborder="0" id="menu_frame" name="menu_frame">
<frame src="right.asp?path=left.asp" frameborder="no" scrolling="NO" name="left" marginwidth="0" marginheight="0" onchange="check()" style="BORDER-BOTTOM: #aeaeae 1px solid;BORDER-left: #aeaeae 1px solid;BORDER-top: #aeaeae 1px solid;" noresize>
<frameset rows="27,*,0,0,0,0,19,0" border="0" framespacing="0" frameborder="0" noresize>
<frame src="top.asp" frameborder="NO" scrolling="no" name="top" marginwidth="0" marginheight="0" style="BORDER-right: #aeaeae 1px solid;BORDER-BOTTOM: #aeaeae 1px solid;BORDER-left: #aeaeae 1px solid;" noresize>
<frame src="right.asp?path=test.asp" frameborder="NO" name="middle" style="border-width:1px;border-style:solid;border-color:#aeaeae;" noresize>
<frame src="right.asp?path=zero.asp" frameborder="no" scrolling="NO" marginwidth="0" marginheight="0" bordercolor="#99CCFF" noresize>
<frame src="about:blank" name="msg" frameborder="no" scrolling="NO" marginwidth="0" marginheight="0" noresize>
<frame src="right.asp?path=CheckExit.asp" frameborder="NO" scrolling="NO" name="hidden_top" marginwidth="0" marginheight="0" noresize>
<frame src="right.asp?path=dstx_zero.asp" name="checkdstx" frameborder="no" scrolling="NO" marginwidth="0" marginheight="0" noresize>
<frame src="right.asp?path=bottom.asp" frameborder="NO" scrolling="NO" name="bottom" marginwidth="0" marginheight="0" style="BORDER-right: #aeaeae 1px solid;BORDER-BOTTOM: #aeaeae 1px solid;BORDER-left: #aeaeae 1px solid;" noresize>
<frame src="" frameborder="NO" scrolling="NO" name="zeroArea" marginwidth="0" marginheight="0" noresize>
</frameset>
</frameset>
</BODY>


而如果去掉"<body>"和"</body>"的话就可以打开了.不知道大家遇到过这样的问题没?我现在一定得加<body>,因为我有触发事件加在里面的.
...全文
106 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
oas 2004-11-06
  • 打赏
  • 举报
回复
楼上的,你真聪明`~ 晕死`~用script判断就行了,没错啊,windows操作系统也只是写几个代码就行是不?
applezhao 2004-11-06
  • 打赏
  • 举报
回复
用script判断 不就行了
caixicai 2004-11-06
  • 打赏
  • 举报
回复
<body></frameset></body>

DW里是这样的
moonvan 2004-11-06
  • 打赏
  • 举报
回复
没有body不能判断这个吗?放到主页面,看看不能判断?
oas 2004-11-06
  • 打赏
  • 举报
回复
但是不加<body>的话,如何判断该页面"document.body.clientWidth"的值呢?
oas 2004-11-06
  • 打赏
  • 举报
回复
嗯,这是一种方式.
qiangsheng 2004-11-06
  • 打赏
  • 举报
回复
另外,你用这么多frame会很消耗资源的,有些功能可以放到一个文件中处理。
qiangsheng 2004-11-06
  • 打赏
  • 举报
回复
body和frameset本来就是不能同时显示的。
你可以在head里面加script,用document.onresize来处理doresize()这类动作。
oas 2004-11-06
  • 打赏
  • 举报
回复
不行呀,我得在<body> 里面加动作事件,比如:

<BODY onresize="doresize()">之类的
flashasp 2004-11-06
  • 打赏
  • 举报
回复
去掉<BODY>不就行拉吗,你要干什么呢