Why is there a point in the front of the HTML file that has a dot at the top of the page?

Source: Internet
Author: User
Tokyu Tokyu Tokyu Tokyu Tokyu Solving


Reply to discussion (solution)

Look at the template, or the PHP file

It's blank .

It's mostly BOM head in mischief





。。。

Reply at: 2014-07-02 16:29:21
It's mostly BOM head in mischief


How to Solve

It's mostly BOM head in mischief




How to Solve

You can save the code as UTF8 without a DOM test.
However, I think it is more likely that an HTML tag is not closed, because this has been encountered before, it is recommended to check whether the label is matched and closed

Look at the template, or the PHP file

It's blank .








<?php if (Is_home ()) {<br/> bloginfo (' name '); echo "-"; Bloginfo (' description '); <br/>} elseif (Is_category ()) {<br/> single_cat_title (); echo "-"; Bloginfo (' name '); <br/>} elseif (Is_single () | | is_page ()) {<br/> single_post_title (); <br/>} elseif (Is_search ()) {<br/> echo "search results"; echo "-"; Bloginfo (' name '); <br/>} elseif (is_404 ()) {<br/> echo ' page not found! '; <br/>} else {<br/> wp_title (', true); <br/>}?>

You can save the code as UTF8 without a DOM test.
However, I think it is more likely that an HTML tag is not closed, because this has been encountered before, it is recommended to check whether the label is matched and closed



Save to UTF8 no DOM, tag matches and closes.

I remember that I had encountered this problem and had solved it. But?? Now I can't remember what the reason is ...

Dizzy above the words have not finished, careless ctrl+enter.

Add:

LZ look at the body tag is not set up padding

The first element does not have a margin set

No, just use Firefox right-click on the element and look at the box model to find out who did this interval.

$s = file_get_contents (' http://www.1718jc.com/', false, NULL, 0, ten); Echo Bin2Hex ($s);
EFBBBF efbbbf203c2144

Isn't this BOM header? It's still two!

BOM Header effect, open home file, remove BOM header, if not, please leave contact information

Yes, this problem we have encountered before, very worried, with Dreamweaver Save As, remove the BOM header option is good, ah ha

Create a new file and then save the code after copying it, and then replace it with the file, which is duly completed.

If none of the above methods are valid, you can try my method:

Use a text editor to open the Web page source code, Ctrl+f search source contains "'", and then remove the save.

I also encountered this problem today, tossing for one hours, code over and over to see no problem, the final issue is that they accidentally press more of this anti-single quote, by the way, I hope the follow-up encounter such problems are helpful.

  • 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.