Home  >  Article  >  Backend Development  >  关于加载frameset空白的问题,求帮忙!!谢谢!!

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

WBOY
WBOYOriginal
2016-06-23 14:39:181290browse

我打算用frameset来做后台,用header(index.php?p=back&c=Index&a=index)跳转frameset页面,可是此时的frameset的代码多了好几个没用的代码    nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

求大哥们帮帮我谢谢了


回复讨论(解决方案)

请问你frameset制定页面,有没系那是内容?

有没显示内容?

HTML代码如下,用EditPlus保存utf8的html:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn"><head>	<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></head><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">  </frameset></frameset></html>


跳转后不对劲的代码如下:
		网页标题							网页标题							网页标题							网页标题							网页标题					<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn"><head>	<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></head><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">  </frameset></frameset></html>



如果用路径来跳转则很正常,使用http://127.0.0.1/shop/index.php?c=Index&a=index就出现以上的问题

你的 index.php 是怎么写的?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn"><head>    <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></head><body></body></html>


原来多出上面代码,是因为我在其他PHP文件中有这些东西,谢谢帮我提供思路

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn