【发布时间】:2021-06-13 09:19:30
【问题描述】:
我正在使用 Reactstrap 中的 Table 属性创建一个表。当我创建表格并为第 th 列输入值时,每列的宽度是不同的,有些非常宽,有些则太窄。我可以调整表格标题以使列宽可调整或全部相同吗?
<Table hover className="text-sm">
<thead>
<tr>
<th>Features</th>
<th>HDHP</th>
<th>PPO 15</th>
<th>PPO 20</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Plan Design</th>
<td>
Deductible-based plan. 100% covered (excluding
prescription Drug copays) once deductible is
met.
</td>
<td>Copay-based plan without a deductible.</td>
<td>
Copay-based plan without a deductible, with
lower premiums than the PPO 15 but higher
out-of-network costs.
</td>
</tr>
<tr>
<th scope="row">Premium (Bi-Weekly)</th>
<td>
Employee: $31.99
<br />
Employee + One: $75.66
<br />
Employee + Family: $95.02
</td>
<td>
Employee: $71.98
<br />
Employee + One: $163.36
<br />
Employee + Family: $205.15
</td>
<td>
Employee: $53.32
<br />
Employee + One: $122.83
<br />
Employee + Family: $154.25
</td>
</tr>
</tbody>
</Table>
【问题讨论】:
标签: javascript html css reactjs reactstrap