页面使用iframe代码,如下
<div name="content_iframe" class="main-content" id="main_content" style="background-color:#e4e6e9;">
<iframe name="content_iframe" width="100%" height="99%" frameborder="0" marginheight="0"
marginwidth="0" scrolling="auto" src="{:U('Superadmin/Index/welcome')}"></iframe>
<div name="content_iframe" class="main-content" id="main_content" style="background-color:#e4e6e9;">
<iframe name="content_iframe" width="100%" height="99%" frameborder="0" marginheight="0"
marginwidth="0" scrolling="auto" src="{:U('Superadmin/Index/welcome')}"></iframe>
</div>
php后台代码,如下
$url = 'http://'.$_SERVER['HTTP_HOST'];//跳转地址
exit('<script language="javascript">top.location.href="' . $url . '"</script>');