html 随记------关于frameset、frame、和iframe的区别
2011-10-29 14:47
429 查看
frameset和frame是在一起的,是一个框架集;买个框架中包括一个页面;
iframe是实现页面中的页面的、如在一个页面中显示另一个一面;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<frameset rows="100,*" cols="*" framespacing="10" frameborder="no" border="10" bordercolor="#FF0000">
<frame src="top.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
<frameset cols="200,*" framespacing="10" frameborder="no" border="10" bordercolor="#FF0000">
<frame src="left.html" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame" />
<frame src="right.html" name="mainFrame" scrolling="auto" id="mainFrame" title="mainFrame" />
</frameset>
</frameset>
<noframes><body>
</body></noframes>
</html>
<!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=utf-8" />
<title>无标题文档</title>
<style type="text/css">
body {
background-image: url(images/bg.gif);
}
</style>
</head>
<body>
<iframe name=width="200" height="200" src="right.html"></iframe>
</body>
</html>
iframe是实现页面中的页面的、如在一个页面中显示另一个一面;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<frameset rows="100,*" cols="*" framespacing="10" frameborder="no" border="10" bordercolor="#FF0000">
<frame src="top.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
<frameset cols="200,*" framespacing="10" frameborder="no" border="10" bordercolor="#FF0000">
<frame src="left.html" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame" />
<frame src="right.html" name="mainFrame" scrolling="auto" id="mainFrame" title="mainFrame" />
</frameset>
</frameset>
<noframes><body>
</body></noframes>
</html>
<!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=utf-8" />
<title>无标题文档</title>
<style type="text/css">
body {
background-image: url(images/bg.gif);
}
</style>
</head>
<body>
<iframe name=width="200" height="200" src="right.html"></iframe>
</body>
</html>
相关文章推荐
- dreamweaver 随记------关于frameset、frame、和iframe的区别
- html Frame、Iframe、Frameset 的区别
- html Frame、Iframe、Frameset 的区别
- HTML frame,iframe,frameset之间的关系与区别
- html Frame、Iframe、Frameset 的区别
- html Frame、Iframe、Frameset 的区别
- html Frame、Iframe、Frameset 的区别
- html 中 frameset、frame以及iframe的区别与联系
- html Frame、Iframe、Frameset 的区别
- html Frame、Iframe、Frameset 的区别 (转)
- html Frame、Iframe、Frameset 的区别
- [复习HTML]frame,iframe,frameset之间的关系与区别
- html Frame、Iframe、Frameset 的区别
- html Frame、Iframe、Frameset 的区别 详细出处参考:http://www.jb51.net/web/22785.html
- html部分---表单、iframe、frameset及其他字符的用法(以及name、id、value的作用与区别);
- HTML 框架标记(3) iframe与frameset的区别
- Frame、Iframe、Frameset 的区别
- frame,iframe,frameset用法和区别
- Frame、Iframe、Frameset 的区别
- frame/frameset/iframe的区别及相互作用