Home  >  Article  >  Web Front-end  >  After the html page uses include to import the php file, there is an extra blank line_HTML/Xhtml_Webpage Production

After the html page uses include to import the php file, there is an extra blank line_HTML/Xhtml_Webpage Production

WBOY
WBOYOriginal
2016-05-16 16:40:172349browse

The method found on the Internet works

The footer and header files introduced with include have an extra blank line on top, which greatly affects the appearance. There is no problem if you put the imported files directly.

After thinking about it, I have always used Gb2312 encoding before, but this time I used Utf-8, which may be related to this.

Many people say that it may be due to css padding settings, etc., but this is not the case for me. Finally, it was found that it was caused by the Unicode signature (bom).

Specific modification method: Open the footer or header, then click "Modify" in Dreamweaver, select "Page Properties", "Title/Encoding", and change the unicode signature (bom) Just uncheck it.

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