博客列表 >3.20内联框架iframe

3.20内联框架iframe

潮涌学习php的博客
潮涌学习php的博客原创
2018年03月22日 02:29:17702浏览

这一节课程学习了iframe内联框架。

它可以在当前页面打开一个窗口或者打开一个网站。

一般结构:<iframe src=""><iframe>

属性:

width  宽;height  高

边框:frameborder=""

滚动条:scrolling="no,yes,auto"

看上去是文档的一部分:seamless

src="" 链接地址,文件地址路径

srcdoc=“”直接写代码

名称(重点):name=“” ------>  <a href="" target="name值"></a>

实例

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>后台管理系统</title>
</head>
<body>
	<table border="0" cellspacing="0" ceepadding="5" align="center" width="960">
		<!-- 顶部 -->
		<tr>
			<td colspan="2">
				<iframe src="inc/top.html" frameborder="0" name="top" height="70" width="100%" scrolling="no"></iframe>
			</td>
		</tr>
		<!-- 分割线 -->
		<tr><td colspan="2" width="100%"><hr></td></tr>

		<!-- 主体 -->
		<tr>
			<!-- 左侧菜单 -->
			<td>
				<iframe src="inc/left.html" name="left" height="600" width="140" scrolling="no" align="center" frameborder="0"></iframe>
			</td>
			<!-- 右侧内容区 -->
			<td>
				<iframe src="inc/default.html" name="right" height="600" width="800" scrolling="no" align="center" frameborder="0"></iframe>
			</td>
		</tr>

		<!-- 分割线 -->
		<tr><td colspan="2" width="100%"><hr></td></tr>

		<tr>
			<td colspan="2">
				<iframe src="inc/footer.html" frameborder="0" name="footer" height="70" width="100%" scrolling="no"></iframe>
			</td>
		</tr>
	</table>
</body>
</html>

运行实例 »

点击 "运行实例" 按钮查看在线实例

3.20-1.jpg

3.20-2.jpg

上一条:3月21日作业下一条:3月20号作业
声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议