html代码:
<!--居中显示-->
<center>
<!--frameborder:(0:没边框;1:有边框)scrolling:(滚动条:yes|no|auto)-->
<iframe src="demo.php" name="window" width=525 height=424 scrolling="auto" frameborder="1"> IFRAME 默认页面 </iframe>
<br><br>
<!--点击之后targt指向window显示href内容-->
<a href="demo.php?p=0" target="window">A页面 </a>
<hr/>
<!--点击之后targt指向window显示href内容-->
<a href="demo.php?p=1" target="window">B页面 </a>
</center>
demo.php 代码:
echo isset($_GET['p']) ? $_GET['p'] ? 'B页面': 'A页面' :'默认页面';
Paste_Image.png
网友评论