在完成学校老师给的任务中,要求在同一url下访问不同的内容,通过查找学习,我找到了,如下解决方法;
注:该方法转自 @majic_Jing
<!DOCTYPE html>
<html>
<head>
<title>majic_Jing</title>
<style type="text/css">
.div1{
width:100px;height:330px; float: left; border: 1px solid #ccc;
}
.div2{
width:500px ;height:330px; float: left; border: 1px solid #ccc;
}
</style>
</head>
<body>
<div class="div1">
<table style="width:100px" cellspacing="0" >
<tr><td><a href="http://baidu.com" target="demo" style="text-decoration: none;color: #000">点击跳转百度</a></td></tr>
<tr><td><a href="http://jd.com" target="demo" style="text-decoration: none;color: #000">点击跳转京东</a></td></tr>
<tr><td><a href="https://mp.csdn.net" target="demo" style="text-decoration: none;color: #000">点击跳转CSDN</a></td></tr>
</table>
</div>
<div class="div2">
<iframe src="map.html" width="500" height="330" name="demo" frameborder="0"></iframe>
</div>
</body>
</html>