小编Kmi*_*123的帖子

mPDF以PDF格式打印中心

我试图集中在详细目录描述的位置.

我希望页面仅从A1-G1中心,然后我合并并集中详细产品目录.问题在于,当我输出到PDF时,它仍然在页面左侧,并且右侧有大量的空白区域.

<?php
            include_once 'processor/dbconfig.php';
            include_once 'Classes/PHPExcel.php';

            /**
             * PHPExcel
             *
             * Copyright (C) 2006 - 2014 PHPExcel
             *
             * This library is free software; you can redistribute it and/or
             * modify it under the terms of the GNU Lesser General Public
             * License as published by the Free Software Foundation; either
             * version 2.1 of the License, or (at your option) any later version.
             *
             * This library is distributed in the hope that it will be useful,
             * …
Run Code Online (Sandbox Code Playgroud)

php mpdf

6
推荐指数
1
解决办法
418
查看次数

表格上方的标签

所以我有这个

echo   
"<div class=''>
 <table class='table' border='1'>
     <tr class='head'>

     <th>Section Name</th>
     <th></th>
     <th>Ae</th>
     <th>Pt</th>
     <th>Prin</th>
Run Code Online (Sandbox Code Playgroud)

我怎样才能在它上面得到一个漂亮的 LABEL,它看起来像是表格的一部分,但它位于 THs 上方的中间,我希望它代表表格名称,例如它会说。表 1 位于该表的中央和上方,但仍位于该表的边界内。

html css

0
推荐指数
1
解决办法
2502
查看次数

标签 统计

css ×1

html ×1

mpdf ×1

php ×1