之前也学过这个 <frameset> 标签,但很长一段时间没有用都有点忘记了,现在要写个后台,需要用到突然不知道怎么用了,看了别人写的后台代码,不懂是什么意思,于是在网上查了下这个标签:
<html>重要事项:您不能与 <frameset></frameset> 标签一起使用 <body></body> 标签。不过,如果您需要为不支持框架的浏览器添加一个 <noframes> 标签,请务必将此标签放置在 <body></body> 标签中!<frameset cols="25%,50%,25%"><frame src="frame_a.htm" /> <frame src="frame_b.htm" /> <frame src="frame_c.htm" /></frameset></html>
| 属性 | 值 | 描述 | DTD |
|---|---|---|---|
| cols |
| 定义框架集中列的数目和尺寸。有关 cols 属性的详细信息。 | F |
| rows |
| 定义框架集中行的数目和尺寸。有关 rows 属性的详细信息。 | F |
id, class, title, style
<?php require_once("checkuservalid.php");?>
<!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>
<title>President后台管理中心</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
</head>
<frameset rows="59,*" frameborder="no" border="0" framespacing="0">
<frame src="top.php" noresize="noresize" frameborder="0" name="topFrame" marginwidth="0" marginheight="0" scrolling="no">
<frameset rows="*" cols="195,10,*" id="frame">
<frame src="left.php" name="leftFrame" noresize="noresize" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto">
<frame src="leftFrame.php" name="leftFrame" id="leftFrame" scrolling="no" noresize >
<frame src="right.php" name="main" marginwidth="0" marginheight="0" frameborder="0" scrolling="yes">
</frameset>
<frame src="UntitledFrame-1" noresize="noresize" frameborder="0" name="bottomFrame" marginwidth="0" marginheight="0" scrolling="no">
<noframes>
<body></body>
</noframes>
</frameset>
</html>
本文深入解析了HTML框架集<frameset>标签的使用方法及重要属性,包括cols、rows等,同时介绍了如何在不支持框架的浏览器中添加<noframes>标签以提供友好体验。
1105

被折叠的 条评论
为什么被折叠?



