文章目录[隐藏]
我打算用frameset来做后台,用header(index.php?p=back&c=Index&a=index)跳转frameset页面,可是此时的frameset的代码多了好几个没用的代码
求大哥们帮帮我谢谢了
回复讨论(解决方案)
请问你frameset制定页面,有没系那是内容?
有没显示内容?
HTML代码如下,用EditPlus保存utf8的html:
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> <title>网页标题</title> <meta name="keywords" content="关键字列表" /> <meta name="description" content="网页描述" /> <link rel="stylesheet" type="text/css" href="" /> <style type="text/css"></style> <script type="text/javascript"> if (window.top != window) { window.top.location.href = document.location.href; } </script><frameset rows="76,*" framespacing="0" border="0"> <frame src="index.php?p=back&c=Index&a=top" id="header-frame" name="header-frame" frameborder="no" scrolling="no"> <frameset cols="180, 10, *" framespacing="0" border="0" id="frame-body"> <frame src="index.php?p=back&c=Index&a=menu" id="menu-frame" name="menu-frame" frameborder="no" scrolling="yes"> <frame src="index.php?p=back&c=Index&a=drag" id="drag-frame" name="drag-frame" frameborder="no" scrolling="no"> <frame src="index.php?p=back&c=Index&a=main" id="main-frame" name="main-frame" frameborder="no" scrolling="yes">
跳转后不对劲的代码如下:
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> <title>网页标题</title> <meta name="keywords" content="关键字列表" /> <meta name="description" content="网页描述" /> <link rel="stylesheet" type="text/css" href="" /> <style type="text/css"></style> <script type="text/javascript"></script><body> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> <title>网页标题</title> <meta name="keywords" content="关键字列表" /> <meta name="description" content="网页描述" /> <link rel="stylesheet" type="text/css" href="" /> <style type="text/css"></style> <script type="text/javascript"></script><body> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> <title>网页标题</title> <meta name="keywords" content="关键字列表" /> <meta name="description" content="网页描述" /> <link rel="stylesheet" type="text/css" href="" /> <style type="text/css"></style> <script type="text/javascript"></script><body> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> <title>网页标题</title> <meta name="keywords" content="关键字列表" /> <meta name="description" content="网页描述" /> <link rel="stylesheet" type="text/css" href="" /> <style type="text/css"></style> <script type="text/javascript"></script><body> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> <title>网页标题</title> <meta name="keywords" content="关键字列表" /> <meta name="description" content="网页描述" /> <link rel="stylesheet" type="text/css" href="" /> <style type="text/css"></style> <sc<p style="color:transparent">本文来源gao!%daima.com搞$代*!码$网3</p><strong>搞代gaodaima码</strong>ript type="text/javascript"></script><body> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> <title>网页标题</title> <meta name="keywords" content="关键字列表" /> <meta name="description" content="网页描述" /> <link rel="stylesheet" type="text/css" href="" /> <style type="text/css"></style> <script type="text/javascript"> if (window.top != window) { window.top.location.href = document.location.href; } </script><frameset rows="76,*" framespacing="0" border="0"> <frame src="index.php?p=back&c=Index&a=top" id="header-frame" name="header-frame" frameborder="no" scrolling="no"> <frameset cols="180, 10, *" framespacing="0" border="0" id="frame-body"> <frame src="index.php?p=back&c=Index&a=menu" id="menu-frame" name="menu-frame" frameborder="no" scrolling="yes"> <frame src="index.php?p=back&c=Index&a=drag" id="drag-frame" name="drag-frame" frameborder="no" scrolling="no"> <frame src="index.php?p=back&c=Index&a=main" id="main-frame" name="main-frame" frameborder="no" scrolling="yes">
如果用路径来跳转则很正常,使用http://127.0.0.1/shop/index.php?c=Index&a=index就出现以上的问题
你的 index.php 是怎么写的?
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> <title>网页标题</title> <meta name="keywords" content="关键字列表" /> <meta name="description" content="网页描述" /> <link rel="stylesheet" type="text/css" href="" /> <style type="text/css"></style> <script type="text/javascript"></script><body>
原来多出上面代码,是因为我在其他PHP文件中有这些东西,谢谢帮我提供思路