在点击导航时,要让页面在iFrame中显示,有两种方式:
一、onclick
导航代码:
二、target
导航代码:
iFrame代码:
一、onclick
导航代码:
<div class="leftTitle2" onclick="window.parent.document.getElementById('bobo').src = '/pages/Sys/OrgMng.aspx'"></div>
二、target
导航代码:
<a href="pages/Sys/DepMng.aspx" target="bobo"></a>
iFrame代码:
<iframe id="bobo" name="bobo" frameborder="0" scrolling="auto" style="width: 100%;
height: 480px" src="pages/SellMng/JiaoZhangReport.aspx"></iframe>