小编Ali*_*oli的帖子

表格标题使用bootstrap进入底部

表格标题位于表格的顶部,但是当我使用引导类时,它会转到表格的底部.

<table class="table table-bordered">
    <caption>why?</caption>
    <tr>
        <th>1</th>
        <th>2</th>
        <th>3</th>
    </tr>
    <tr>
        <th>4</th>
        <td>5</td>
        <td>6</td>
    </tr>
</table>
Run Code Online (Sandbox Code Playgroud)

如何将其与表格顶部对齐?

html twitter-bootstrap-4

13
推荐指数
1
解决办法
9555
查看次数

标签 统计

html ×1

twitter-bootstrap-4 ×1