看模板,或者php文件     这里有空白<?php

解决方案 »

  1.   

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
      

  2.   

    回复于: 2014-07-02 16:29:21
    多半是BOM头在作怪
    如何解决
      

  3.   

    可以把代码保存为utf8无dom试试。
    不过我觉得更大的可能是有个html标签没关闭,因为以前也遇到过这种情况,建议检查下标签是否都匹配且关闭了
      

  4.   

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><?php if (is_home()) {
            bloginfo('name'); echo " - "; bloginfo('description');
        } elseif ( is_category() ) {
            single_cat_title(); echo " - "; bloginfo('name');
        } elseif (is_single() || is_page() ) {
            single_post_title();
        } elseif (is_search() ) {
            echo "搜索结果"; echo " - "; bloginfo('name');
        } elseif (is_404() ) {
            echo '页面未找到!';
        } else {
            wp_title('',true);
        } ?></title>
    </head>
      

  5.   


    保存成utf8无dom了         标签都匹配且关闭了
      

  6.   

    晕上面的话还没说完,不小心 ctrl+enter 了。补充:LZ 看看 body 标签是不是设置了 padding第一个元素有没有设置 margin再不行就用火狐右键查看元素,看看盒子模型,就能找出到底这个间隔是谁弄的。
      

  7.   

    $s = file_get_contents('http://www.1718jc.com/', false, null, 0, 10);
    echo bin2hex($s);efbbbfefbbbf203c2144这不是 BOM 头吗?还是两个!
      

  8.   

    bom头影响的,打开首页文件,去除bom头,如果不会,请留下联系方式
      

  9.   

    是啊,这个问题我们 之前也遇到过,很揪心的,用Dreamweaver另存为,去掉bom头选项就好了,啊哈