Why is there a blank dot on the top of the page in front of the declaration in the html file! Urgent! Urgent! Urgent! Urgent! Solution
Reply to discussion (solution)
View the template or php file
Blank
Most of them are BOM headers.
...
Reply: 16:29:21
Most of them are BOM headers.
Solution
Most of them are BOM headers.
Solution
You can save the code as utf8 without dom.
However, I think it is even more likely that an html tag has not been closed, because this situation has also been encountered before. we recommend that you check whether all tags match and close it.
View the template or php file
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 result"; 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 dom.
However, I think it is even more likely that an html tag has not been closed, because this situation has also been encountered before. we recommend that you check whether all tags match and close it.
Saved as utf8 without dom. tags are matched and disabled.
I remember that I encountered this problem and solved it. But ?? I cannot remember why...
Dizzy above the words have not been completed, accidentally ctrl + enter.
Supplement:
LZ: Check whether the body tag is configured with padding.
Does the first element set margin?
If it doesn't work, right-click firefox to view the elements and check the box model to find out who made the gap.
$s = file_get_contents('http://www.1718jc.com/', false, null, 0, 10);echo bin2hex($s);
Efbbbf efbbbf203c2144
Isn't this the BOM header? Two more!
If the bom header is affected, open the homepage file and remove the bom header. if not, leave the contact information
Yes, we have encountered this problem before. it is very worrying to use Dreamweaver to save it and remove the bom header option.
Create a new file, copy the code, save it, and replace the file.
If none of the above methods are valid, try my method:
Open the webpage source code in a text editor, Ctrl + F search for whether the source code contains "'", and then remove and save it.
I also encountered this problem today. after an hour of hard work, I had no problem checking the code. I finally wrote it out with this quotation mark accidentally, I hope this will be helpful in the future.