网站制作学习网经验与学习→正文:frameset 空白页面
字体:

frameset 空白页面

经验与学习 2010/11/15 18:13:32  点击:不统计


在做php页面中做到了用utf-8做后台,我采用框架的时候,frameset显示空白,如何也显示不出来.
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>管理中心</title>
</head>
<frameset rows="59,*" frameborder="no" border="0" framespacing="0">
<frame src="k_top.php" noresize="noresize" frameborder="0" name="topFrame" marginwidth="0" marginheight="0" scrolling="no">
<frameset rows="*" cols="195,*" id="frame">
<frame src="k_left.php" name="leftFrame" noresize="noresize" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto">
<frame src="k_right.php" name="main" marginwidth="0" marginheight="0" frameborder="0" scrolling="yes">
</frameset>
<frame src="UntitledFrame-1" noresize="noresize" frameborder="0" name="bottomFrame" marginwidth="0" marginheight="0" scrolling="no">
</frameset>
</html>
怎么搞也出不来,不管改什么都是显示空白页面,在火狐浏览器下查看源代码发现frameset body内容为空,查询网络有人说标准问题有人说编码问题.
逐步判断首先将php的require隐含页面进行删除,然后执行显示.
逐个排查后发现了问题,在utf-8狭隘做的页面分utf-8+BOM 和UTF-8两种页面格式,必须格式相同才能显示,全部改为utf-8格式的页面.则全部显示正常了,原来的空白页面显示正常

转www.载for网站制作学习asp必.cn究

·上一篇:css3.0学习 columns >>    ·下一篇:外观模式 >>
推荐文章
最新文章