1.main.html
<html> <meta charset="utf-8"> <head> <title>框架链接标志</title> </head> <!--这里来建立浏览器框架--> <frameset cols="25%,*"> <frame src="menu.html" scrolling="no" name="Left"> <frame src="page1.html" scrolling="auto" name = "Main"> <noframes> <body> <p>对不起浏览器不支持框架</p> </body> </noframes> </frameset> </html>
2.menu.html
<html> <meta charset="utf-8"> <head> <title>目录</title> </head> <body> <p><font color="yellow">目录</font> <p><a href="page1.html" target="Main">链接到第一页</a></p> <p><a href="page2.html" target="Main">链接到第二页</a></p><p><span>立即学习</span>“<a href="https://pan.quark.cn/s/7fc7563c4182" style="text-decoration: underline !important; color: blue; font-weight: bolder;" rel="nofollow" target="_blank">PHP免费学习笔记(深入)</a>”;</p> </body> </html>
3.page1.html
<html> <meta charset="utf-8"> <body> <p align="center"><font color="yellow">这是第一页1111111!</p> </body> </html>
4.page2.html
<html> <meta charset="utf-8"> <body> <p align="center"><font color="black">这是第二页111111111!</p> </body> </html>
打开Mian.html如下效果


在同一个页面框架打开了2个不同的html
学习用到的标签有以下标签
链接标志
1....这就是html中的链接标签它有2个必须填写的属性href=""这是链接内容,如果你要使用图片来当作链接的话,可以使用以下属性。来实现图片跳转具体的写法我为这是百度的链接,
name属性是来标记一个标签名字的,这个是不可缺少的。
框架标志
1.
是用来在html中定义主文档中各个框架的定义,它有两个属性一个rows用于行定位,一个cols用于列定位取值可以是百分比或者星号。系统默认的是从左到右从上到下2.
3
以上就介绍了PHP(6)只记录我的学习历程 html(链接和框架标志),包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。











