<!DOCTYPE html>//demo.html <html> <head> <meta charset="UTF-8"> <title>世界 你好</title> </head> <frameset cols="30%,*">//左边30% 右边余下的70% <frame src="a.html">//30% <frameset rows="30%,20%,*">//右边的70% 分为上中下30% 20% 余下50% <frame name="main">//30% <frame>//20% <frame>//50% </frameset> </frameset> </html>
<!DOCTYPE html>//a.html <html> <head> <meta charset="UTF-8"> <title>Insert title here</title> </head> <body> <a href="b.html" target="main">这是a</a> </body> </html>
<!DOCTYPE html>//b.html <html> <head> <meta charset="UTF-8"> <title>Insert title here</title> </head> <body> <a>这是b到-</a> </body> </html>
点击 这是a(demo.html通过src连接到a.html上) 显示如下: