使用内表时 Flask WTforms 调整字段高度

时间:2021-01-28 21:58:44

标签: python flask flask-wtforms


我有一个表格,每行都有 WTForms 字段。无论如何,我似乎无法使行高变小。
它适用于使用常规 html 输入标签但不适用于这些 WTForms StringFields。知道怎么做吗?
谢谢!

<table class="table table-hover table-sm table-striped">
    <thead class="thead-dark" align="center">
        <tr>
            <th colspan="2">Contact info</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>{{ render_field(form.company, size=40) }}</td>
        </tr>
    </tbody>
</table>

0 个答案:

没有答案
相关问题