1 <%@ page language="java" contentType="text/html; charset=UTF-8"
2 pageEncoding="UTF-8"%>
3 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
4
5 <!-- <frameset>标签:
6
7 属性:rows、cols、 可以使用固定值(rows="100rpx,600rpx"),百分比和 * 三种
8
9
10
11 <frame>标签:
12
13 属性:src、name、scrolling、noframes
14
15 <a href=“”>的target属性n四个内置的取值:_blank、_parent、_self、_top
16
17 <noframes>标签:使用Microsoft Visual Studio.NET创建框架集
18
19 -->
20
21
22 <frameset rows="40%,*" cols="333rpx,500rpx">
23 <!-- 控制页面的显示的大小 -->
24
25 <frame src="http://www.baidu.com" name="mingzi" />
26 <!-- name属性规定框架的名字 -->
27
28 <frame src="http://sina.com" />
29 <frame src="http://home.firefoxchina.cn/?from=extra_start" />
30 <frame src="http://sina.com" />
31 <!-- 当浏览器的版本过低无法显示时,显示 <noframes>中的内容-->
32 <noframes>
33 <body>您的浏览器的版本过低无法正常显示,建议你升级
34 </body>
35 </noframes>
36
37
38 </frameset>
![]()
1 <%@ page language="java" contentType="text/html; charset=UTF-8"
2 pageEncoding="UTF-8"%>
3 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
4 <html>
5
6 <head>
7 <!-- <frame>标签:
8
9 属性:src、name、scrolling、noresize
10
11 <a href=“”>的target属性n四个内置的取值:_blank、_parent、_top
12
13
14
15 <iframe>标签:一般用于正常页面中加载其他网页 -->
16
17 <title>后台管理页面</title>
18
19 <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
20
21 </head>
22
23 <body>
24 <center><h2>
25 <a href="http://www.baidu.com" target="_blank">baidu</a>
26 <a href="http://www.baidu.com" target="_parent">百度</a>
27
28 <a href="http://www.163.com" target="_top"> 163</a><br></h2>
29 </center>
30 <!-- frameborder设置是否显示有边框 0代表无,1代表有 -->
31
32 <h3>iframe 中始终显示滚动条:</h3>
33 <iframe src="http://www.baidu.com" width="900" height="300px" frameborder="1" scrolling="yes" marginheight="550px" marginwidth="100px"></iframe> <br>
34
35 </body>
36
37 </html>
![]()