0

我一直在研究 qweb pdf 的表格部分,其中包括以下部分:

<div class="row">
    <h3><font color="blue">Action Items:</font></h3>
    <table class="table table-bordered">
        <thead>
            <tr>
                <th>Action</th>
                <th>Assigned To</th>
                <!--<th class="text-center">Ref.</th>-->
                <th>Due Date</th>
                <th>Status</th>
            </tr>
            <br/>
            <br/>
        </thead>
        <tbody>
            <tr t-foreach="o.action" t-as="line">
                <td><span t-field="line.act_ion"/></td>
                <td>
                    <span t-field="line.asgnd_to"/>
                </td>
                <td>
                    <span t-field="line.due_date"/>
                </td>
                <td>
                    <span t-field="line.Status"/>
                </td>
            </tr>
        </tbody>
    </table>
</div>

我遇到了一些问题,比如图像中的表头和表体在新页面中相互碰撞图像表

4

1 回答 1

0

在div标签之外创建表格并在表格上设置以下类:class="table table-condensed"

于 2016-02-25T09:59:47.130 回答