---
title: "frameset和frame的使用"
author: "zxhDaniel"
date: "2011-08-03T00:46:23Z"
tags: []
categories: ["Web前端"]
slug: "frameset-frame"
draft: false
lastmod: "2011-08-03T00:48:27Z"
id: 1138690
url: "https://zxhdaniel.iteye.com/blog/1138690"
---

**仔细看下**下面3段代码，我想应该就会知道怎么用frameset去划分框架了吧

 

```
<!--上方固定-->
<frameset rows="50,*" cols="*" frameborder="1">
<frame src="header.html" scrolling="no"/>  
<frame src="middle.html" noresize="noresize"/> 
```

```
<!--上方固定，下方固定-->
<frameset rows="15%,*,15%" cols="*" frameborder="1">
<frame src="header.html"/>
<frame src="middle.html"/>
<frame src="foot.html"/>
```

  

 

```
<!--上方固定，右侧嵌套-->
<frameset rows="30%,*" cols="*" frameborder="1">
<frame src="header.html"/>

<frameset rows="*" cols="70%,30%" frameborder="1">
<frame src="left.html"/>
<frame src="right.html"/>
```

 

其他的属性就查下文档就得。