目录结构如下:
pages 文件夹 用于放置被内联的网页文件
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<!-- <iframe src="http://ke.gxaedu.com/" frameborder="0" width="1366" height="600"></iframe> -->
<nav style="float: left;">
<ul>
<li><a href="pages/p1.html" target="here">p1</a></li>
<li><a href="pages/p2.html" target="here">p2</a></li>
<li><a href="pages/p3.html" target="here">p3</a></li>
</ul>
</nav>
<iframe src="pages/p1.html" frameborder="1" name="here"></iframe>
</body>
</html>
被内联的网页文件代码如下:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
page 1
</body>
</html>