在使用PHP的fpdf中,文本在while循环中彼此不对齐?

在使用PHP的fpdf中,文本在while循环中彼此不对齐?,php,fpdf,Php,Fpdf,嗨,我正试图使用FPDF PHP在cell的帮助下创建一个表数据,但文本彼此不对齐 代码- while ($resultArray = mysql_fetch_array($queryResult)) { //Date $pdf->setXY(17, 35+($i * 6.1)); $pdf->SetFillColor(238, 236, 225); $pdf->SetFont('Arial', '', 8)

嗨,我正试图使用FPDF PHP在cell的帮助下创建一个表数据,但文本彼此不对齐

代码-

    while ($resultArray = mysql_fetch_array($queryResult)) {    

//Date
  $pdf->setXY(17, 35+($i * 6.1));
            $pdf->SetFillColor(238, 236, 225);
            $pdf->SetFont('Arial', '', 8);
            $pdf->Cell(171, 6, formatPubDate($pubdate), 0, 0, 'L', True);

//Headline

$pdf->setXY(41, 36 + ($i * 4.4));
            //  $pdf->SetFillColor(238, 236, 225);
             $pdf->SetFont('Arial', '', 8);
             $pdf->Cell(1, 14, (htmlspecialchars(iconv('utf-8', 'ascii//TRANSLIT', $article))), 0, 0, 'L', True);
} 

这是我的输出

FWIW,您只需设置一次字体和填充颜色(在while循环之前)。你是从哪里想到6.1和4.4来调整Y定位的?我只是通过放置随机值来测试它,然后放置4.4和6.1。