重工电子论坛

标题: HTML问题1-14 [打印本页]

作者: 李维强-15级    时间: 2016-1-14 21:26
标题: HTML问题1-14
本帖最后由 李维强-15级 于 2016-1-14 21:31 编辑

[HTML] syntaxhighlighter_viewsource syntaxhighlighter_copycode
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>框架的实际应用</title>
</head>

<frameset rows="105,*" cols="*">
  <frame src="top.html" name="topFrame" scrolling="NO" noresize>
  <frameset rows="*" cols="149,*">
    <frame src="left.html" name="leftFrame" scrolling="NO" noresize>
    <frame src="main.html" name="mainFrame">
  </frameset>
<noframes><body>
</body></noframes>
</frameset>
</html>



问题1:
<noframes><body>
</body></noframes>
这里的<noframes>不是应该包含在<body>里面的么?这里为什么会是在外面包含,这个有什么作用?

问题2:
在代码12行的  </frameset> 我把它删除掉,但是在浏览器里面同样能解释,正常运行,我用Firefox,通过查看元素发现浏览器自动添加了这个标签,请问在写的时候我们是否要人为添加这个结束标签?还是添不添加都没关系?
作者: 张金权-11级电子    时间: 2016-1-15 10:31
虽然不懂,但是很好玩的样子




欢迎光临 重工电子论坛 (http://www.cqutlab.cn/) Powered by Discuz! X3.1