我使用 Bootstrap 创建了两个表,它们的内容量相似。尽管如此,这两个不同的表并没有正确对齐。我希望这些表的列能够像 MS Excel 中那样正确对齐。显示问题的代码和图片如下:
<div class="container-fluid">
<table class="table table-striped table-dark">
<h1 class="table-headers">Education</h1>
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">School</th>
<th scope="col">Years</th>
<th scope="col">Program</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>Hacettepe University, Ankara</td>
<td>2010-2014</td>
<td>BA, Composition and Orchestral Conducting</td>
</tr>
<tr>
<th scope="row">2</th>
<td>Istanbul Technical University</td>
<td>2015-2020</td>
<td>Ph.D.(c), Orchestral Conducting</td>
</tr>
</tbody>
</table>
<table class="table table-striped table-dark">
<h1 class="table-headers">Experience</h1>
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Institution</th>
<th scope="col">Years</th>
<th scope="col">Position</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>Hacettepe University, Ankara</td>
<td>2014-2015</td>
<td>Intern</td>
</tr>
<tr>
<th scope="row">2</th>
<td>Istanbul Technical University</td>
<td>2015-2020</td>
<td>Research Assistant</td>
</tr>
</tbody>
</table>
</div>
墨色风雨
慕标5832272
相关分类