使用vscode编译代码html代码
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>测试</title>
<link href="css/basic.css" rel="stylesheet" type="text/css"><!-- 清除li格式等 -->
<link href="css/style.css" rel="stylesheet" type="text/css">
<script src="js/jquery.min.js"></script>
<script src="js/index.js"></script>
</head>
<body>
<div class="container">
<div class="left">
<ul>
<li><a class="hover" href="page1.html" target="_right">页面一</a></li>
<li><a href="page2.html" target="_right">页面二</a></li>
</ul>
</div>
<div class="right">
<iframe class="myiframe" src="page1.html" name="_right"></iframe><!--默认页面为page1-->
</div>
</div>
</body>
</html>
在localhost:8080中打开这个页面,但是无法跳转到page1页面