FPDF 无法在页脚中居中元素

问题描述

我尝试制作一个 3 列的页脚。没有成功。有人知道为什么吗?

class PDF extends FPDF
{


// Page footer
function Footer()
{
    global $shop_footer;
    global $date;
    //global $adress_shop;
    // Position at 1.5 cm from bottom
    $this->SetY(280);
    // Arial italic 8
    $this->SetFont('Philosopher','I',8);
    $this->Cell(0,10,$shop_footer[2],'L');
    $this->Cell(0,'Page '.$shop_footer[1],'C');
    $this->Cell(0,$shop_footer[0].' - '.$date['year'].'/'.$date['mon'].'/'.$date['mday'],'R');
}
}

enter image description here

此图中的问题是左侧的“第 1 页”。它应该在页脚的中心,但不知何故它向右移动并与右侧的元素合并......

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)