相关疑难解决方法(0)

居中对齐HTML表格

在我正在处理的页面上,我似乎无法将第一行中的图像和下面的两列文本居中(两列不应超过图像的这是页面:http://www.puzzles-et-jeux.com/fr/page/minipuzzles.html 我花了很多时间试图解决这个问题.我想把它保存在HTML中因为我必须赶时间,因为我必须为每个图像创建20页不同宽度/ +布局的排序.

html html-table alignment

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

我如何在Bootstrap中将表格水平居中

这是我的代码。我正在尝试做的就是将此表放在容器的中央。但是,当我使用“容器”类时,默认情况下它会向左对齐,当我将div使用“容器-流体类”时,它将使用全宽。我想将桌子水平居中。有人可以帮忙吗?

<!-- Container (Pricing Section) -->
<div id="pricing" class="container-fluid">
<table class="table table-bordered table-striped">
<thead><tr>
<th>Material Name</th>
<th>Rate (INR)</th>
</tr>
</thead>
<tbody style="">
<tr>
<td>Books</td>
<td>7.00(per KG)</td>

</tr>
<tr>
<td>Soft Plastic</td>
<td>15.00(per KG)</td>

</tr>
<tr>
<td>Hard Plastic</td>
<td>2.00(per KG)</td>

</tr>
</tbody>
</table>
<div>
Run Code Online (Sandbox Code Playgroud)

这是一个屏幕 截图

我知道“容器流体”使用全宽度,但我也只使用了“容器”类,但这无济于事。请指教...

html twitter-bootstrap

9
推荐指数
5
解决办法
5万
查看次数

标签 统计

html ×2

alignment ×1

html-table ×1

twitter-bootstrap ×1