Home >Web Front-end >HTML Tutorial >After the html page uses include to import the php file, there is an extra blank line_HTML/Xhtml_Webpage Production
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.