您的位置:首页 > 其它

点击链接让页面在iFrame切换里显示

2012-10-09 09:48 225 查看
<html>
<body>
<a href= "1.html " target= "iFrame1 "> page1 </a> <br/>
<a href= "2.html " target= "iFrame1 "> page2 </a> <br/>
<a href= "3.html " target= "iFrame1 "> page3 </a> <br/>
<a href= "4.html " target= "iFrame1 "> page4 </a> <br/>
<div id= "iFrame1 " style= "position:absolute; left:220px; top:200px; z-index:18 ">
<iframe name= "iFrame1 " width=542 height=615 src= "1.html " scrolling= "auto " frameborder= "0 "> </iframe>
</div>

</div> </body>
</html>

主要是在iframe里定义name=XXX ,然后在href里用 target调target=XXX 。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐