解决方案 »

  1.   

    wordpress的是不是?找个类似的模板看下 套用下就好了
      

  2.   

    看代碼沒發現問題。按你講的,出問題應該是
    qtrans_use($q_config['language'],'<!--:zh-->更多<!--:--><!--:en-->More<!--:-->') 這裏我把相關方法修改為自定義方法,是正確的,所以可以確定不是混排的問題。
    <?php
    $str = 'post id';function qtrans_use($a, $b){
    return $a.$b;
    }
    //if ( $query->have_posts() ) :
            $out = "<ul class='post-list'>";
                //while ( $query->have_posts() ) : $query->the_post();                   
                    $out .= "<li style='list-style:none;list-style-type:none;'>    "."<a href='".$str."'>".$str."   
                    </a><a class='list_title' href='".$str."'>" .$str. "</a>
                    <a class='excerpt' href='".$str."'>
                    <span>".qtrans_use($str,'<!--:zh-->更多<!--:--><!--:en-->More<!--:-->')."</span></a>
                </li>";
                //endwhile;
            $out .= "</ul>";
      echo $out;
            //return $out;
        //else:
          //  return "<p>No Post found.</p>";
        //endif;
    ?>
    但你並沒有給出qtrans_use的源碼。沒法判斷。