A line of blank lines is added to the coordinate point of the body, which turns out to be a coding problem.

Source: Internet
Author: User

Previously, for convenience, I directly modified the file on the server and then clicked save, but the problem was that there was a strange blank line at the top, 1

Figure 1

Code 2 originally edited in source code

Figure 2

However, the external style of FF or Chrome is in the body, not in the head, 3

Figure 3

Let's look at the Google body, but there is no terminal with a blank line, 4

Figure 4

At the same time, when you view the source code in FF, you can find that the head and body do not end to red, while other pages except the first line <HTML> marked red, other Head, body is black, 5

Figure 5

Work und: save this page as the UTF-8 format and display everything as normal

Thinking: this problem is very likely to have saved the UTF-8 with BOM format!

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.