ifarme跳轉瀏覽器安全色有關問題
來源:互聯網
上載者:User
ifarme跳轉瀏覽器安全色問題 ?
我總共有三個頁面, index, top, main 小弟想用 iframe 重新整理main ,但是在firefox下,點選連結回彈出新視窗,而ie下不會,怎麼樣設定,才回讓firefox不彈出呢??? 小弟水平太有限,肯求各位大哥幫忙,由於發貼許可權只有100,所以最多也就100分了,問題解決,保證結貼。
index:
<br /><iframe src="main.php" name="main" scrolling="auto" height="85%" width="100%" frameborder="0" border="0" frameborder="no"><br /></html><br /><br />top:<br /><br /><html><br /><body><br /><ul id="nav"><br /><li>首 頁</li><br /> <li>school</li><br /> <li>user</li><br /> <li>site</li> <br /> <br /></ul><br /></body><br /></html><br /><br />main<br /><?php<br />header("content-type:text/html; charset=utf-8"); <br />include_once("session.php");<br />?><br /><head> <br /> <br /> <br /></head> <br /><body> <br /> <br /> <br /> <?php <br /> <br /> $action = $_GET["action"];<br /> $model = $_GET["model"];<br /> <br /> $_SESSION['action']=$action;<br /> $_SESSION['operateid']=$operateid;<br /> <br /> if(isset($action)) {<br /> switch ($model) {<br /> case "school": <br /> include_once("schoolproperties.php");<br /> break;<br /> case "user":<br /> include_once("userproperties.php");<br /> break; <br /> case "site":<br /> include_once("siteproperties.php");<br /> break;<br /> default: include_once("welcome.php");<br /> }<br /> }<br /> ?><br /> <br /> <br /></body> <br /></html><br><br />------解決方案--------------------<br />友情幫頂!<br />------解決方案--------------------<br />一定要iframe嗎?<br />試試這個index:<br /><dl class='code'>HTML code<pre class="brush:php;toolbar:false"><html><frameset rows="15%,85%"><frame src="top.php" name="top" scrolling="auto" height="15%" width="100%" frameborder="0" border="0" frameborder="no"><frame src="main.php" name="main" scrolling="auto" height="85%" width="100%" frameborder="0" border="0" frameborder="no"></frameset></html><br />------解決方案--------------------<br />iframe貌似用parent吧<li ><i class="layui-icon">