[Switch] Why is there a gap in front of my Div block?

Source: Internet
Author: User

When I was doing a website project, I accidentally encountered a strange thing. My div is nested in another Div and there is always such a gap:

Firebug: view the margin, padding, and line-height of the internal and external Divs.

Right-click to view the source code, and there is no exception.

The fox's tail is always exposed. When you try to edit the outer Div with firebug, the following situation occurs:

One of them is & #65279, which is calculated using a calculator. The hexadecimal format is feff. Isn't that the famous BOM file header?
So I will search for it on the Internet and get the solution from http://7567567.blog.51cto.com/706379/641744. In the past, my inner Div entered through the include command of PHP, and this PHP file is exactly UTF-8 and should be it! Use the vim command: Set nobomb to solve the problem and re-upload it.

Original URL: http://www.loverecorder.com /? P = 30

[Switch] Why is there a gap in front of my Div block?

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.