打印/PDF 时表格标题在第二页上重叠

时间:2021-05-10 02:10:23

标签: html css pdf

坚持这个小问题,即表格标题与 tbody 行重叠,如下所示; image overlapping issue on PDF

这是创建表格的通用代码;

<table id="symptoms" class="table table-bordered  mg-t-15" style="table-layout: fixed;">
                    <thead>
                        <tr class='bg-gray-300 tx-12 tx-uppercase tx-color-02'>
                            <th>Symptom</th>
                            <th>Status</th>
                            <th>Rating</th>
                            <th>Frequency/Details</th>
                        </tr>
                    </thead>
                    <tbody class='tx-12 mg-t-10'>
                            <?php foreach ($this->patient->medical->symptoms as $symptom): ?>
                                <tr class='tx-12'>
                                    <td>....</td>
                                    <td>....</td>
                                    <td>....</td>
                                    <td>....</td>
                                </tr>
                            <?php endforeach; ?>
                    </tbody>
                </table>

我尝试了 SO 的一系列建议,但都没有奏效,所以我在这里有点松散,哈哈!

0 个答案:

没有答案