Home > Backend Development > PHP Tutorial > 用PHP include()函数,出现Chrome浏览器错位? 请问解决.

用PHP include()函数,出现Chrome浏览器错位? 请问解决.

WBOY
Release: 2016-06-13 10:08:49
Original
912 people have browsed it

用PHP include()函数,出现Chrome浏览器错位? 请教解决....

PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><?php include("header.php");?>
Copy after login


想通过include() 统一调用头部,我的文件编码是UTF-8,保存格式是utv-8 + BOM

当头部文件写在页面上时,一切正常。



当头部文件使用include()函数,在chrome出现如下效果,请问解决方案和问题所在?



------解决方案--------------------
去掉 BOM
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template