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

WBOY
Release: 2016-05-16 16:40:17
Original
2381 people have browsed it

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.

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!