作者tao2tw (smile_ting)
看板PHP
标题Re: [请益] CI里面header档案的写法 codeigniter
时间Tue Aug 28 22:06:56 2012
不好意思,上一篇可能表达不清楚。
我在 index.php 里面 require_once 我的 header.php
照理来说,我的header.php 就算是 纯HTML TAG 也不影响正常执行才对。
header.php 档案
https://dl.dropbox.com/u/23461380/header.php.jpg
index.php 档案
https://dl.dropbox.com/u/23461380/index.php.jpg
用Firefox / IE 的开发工具看 都可以看到
我header档内容被拆开来。
可以看到我include header.php 内容应该要夹在 <head></head> 里面才对
结果居然很大一部分内容被塞到 body 下面去,
这应该是Firefox 自己去做掉的事情,
我不确定是否因为什麽原因,我哪边做错 让 Firefox会这样做
但是被塞到body後面,就也很难保证是否执行上会产生问题
有人知道大概是怎麽回事吗? 谢谢
<html xmlns="
http://www.w3.org/1999/xhtml">
<head></head>
<body class="no-cssgradients">
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="IE=8, IE=9, IE=10" http-equiv="X-UA-Compatible">
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 119.77.136.156
1F:推 taichunmin:我怀疑是 UTF-8 BOM 在作祟,请存成无 BOM 格式。 08/28 22:42
2F:→ taichunmin:可使用 Notepad++。 08/28 22:42