Frame标签

来源:互联网 发布:淘宝怎么看自己宝贝排名 编辑:程序博客网 时间:2024/06/05 15:10
 

<!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=gb2312" />
<title>无标题文档</title>
</head>

<frameset rows="10%,80%,10%" cols="*" frameborder="no" border="" framespacing="0">

  <frame src="TOP.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />

  <frameset cols="10%,*" framespacing="no" frameborder="yes" border="">
    <frame src="LEFT.html" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame" />
    <frame src="right.html" name="right.html" id="right.html" title="right.html" />
  </frameset>

  <frame src="DOWN.html" name="downFrame" scrolling="No" noresize="noresize" id="downFrame" title="downFrame" />

</frameset>
<noframes><body>
</body>
</noframes>
</html>

cols :垂直切割窗口;

rows :横向切割窗口;

frameborder :设置框架的边框,其值有0不要边框,1要边框。
border :设置框架边框厚度
framespacing :表示框架与框架间保留空白的距离

frame 元素(单标签)
语法格式:
<frame name="" src="url" scrolling="yes/no" noresize>
属性:
name 框架名称,指定框架来做连接的目标窗口。
src 框架中要显示的网页文当url地址,每个个框架要对应一个html文挡。
scrolling 是否显示滚动条,yes/no,auto是自动。
noresize 设置不让使用者改变这个框架的大小,

noframe元素
指定当使用了框架的页面在不支持框架的浏览器中打开时显示的信息
语法格式:
<noframe>
.....
</noframe>