小编TDM*_*ter的帖子

在 Bootstrap 中居中表格标题文本

我试图将表格标题中的文本居中以与下面的文本对齐。我似乎无法让标题对齐。

<div class="container">
<div class="text-center">
    <h2>Lorem Ipsum</h2>
    <p>Lorem Ipsum
    </p>
    <div class="table-responsive">
        <table class="table table-striped">
        <thead>
        <tr>
            <th>Table Header 1
            </th>
            <th>Table Header 2
            </th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td>Lorem Ipsum
            </td>
            <td>Lorem Ipsum
            </td>
        </tr>
        </tbody>
        </table>
    </div>
</div>
Run Code Online (Sandbox Code Playgroud)

html twitter-bootstrap

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

html ×1

twitter-bootstrap ×1