• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

关于加载frameset空白的问题,求帮忙!!谢谢!!

php 搞代码 3年前 (2022-01-23) 29次浏览 已收录 0个评论
文章目录[隐藏]

我打算用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文件中有这些东西,谢谢帮我提供思路


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:关于加载frameset空白的问题,求帮忙!!谢谢!!
喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址