内容简介:翻译自:https://stackoverflow.com/questions/13407085/how-do-you-make-a-table-like-this-with-fpdf-using-php
FPDF无法识别rowspan或colspan.这是一个可以尝试的解决方法,使用空单元格和
Cell
的border属性.
$pdf->Cell(40,5,' ','LTR',0,'L',0); // empty cell with left,top, and right borders $pdf->Cell(50,5,'Words Here',1,0,'L',0); $pdf->Cell(50,5,'Words Here',1,0,'L',0); $pdf->Cell(40,5,'Words Here','LR',1,'C',0); // cell with left and right borders $pdf->Cell(50,5,'[ x ] abc',1,0,'L',0); $pdf->Cell(50,5,'[ x ] checkbox1',1,0,'L',0); $pdf->Cell(40,5,'','LBR',1,'L',0); // empty cell with left,bottom, and right borders $pdf->Cell(50,5,'[ x ] def',1,0,'L',0); $pdf->Cell(50,5,'[ x ] checkbox2',1,0,'L',0);
结果将是 –
翻译自:https://stackoverflow.com/questions/13407085/how-do-you-make-a-table-like-this-with-fpdf-using-php
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
猜你喜欢:- 使用Libvirt创建虚拟机
- 使用 IDEA 创建 EJB 工程
- 使用 IDEA 创建 EJB 工程
- 使用Docker创建Elasticsearch服务
- c# – 使用队列创建BackgroundWorker
- 使用容器 Docker 创建开发环境
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Web 2.0 Architectures
Duane Nickull、Dion Hinchcliffe、James Governor / O'Reilly / 2009 / USD 34.99
The "Web 2.0" phenomena has become more pervasive than ever before. It is impacting the very fabric of our society and presents opportunities for those with knowledge. The individuals who understand t......一起来看看 《Web 2.0 Architectures》 这本书的介绍吧!