Rumah > pembangunan bahagian belakang > tutorial php > 关于加载frameset空白的问题,求帮忙!!谢谢!!

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Lepaskan: 2016-06-23 14:39:18
asal
1372 orang telah melayarinya

我打算用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>
Salin selepas log masuk


跳转后不对劲的代码如下:
		网页标题							网页标题							网页标题							网页标题							网页标题					<!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>
Salin selepas log masuk



如果用路径来跳转则很正常,使用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>
Salin selepas log masuk


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

Kenyataan Laman Web ini
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn
Tutorial Popular
Lagi>
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan