[我想知道为什么bootstrap 4.5在这样的元素之后放一个权利,([bootstrap官方网站],为什么scope="row
表示?
<table class="table">
<thead class="thead-dark">
<tr>
<th scope="col">#</th>
<th scope="col">First</th>
<th scope="col">Last</th>
<th scope="col">Handle</th>
</tr>
</thead>
<tbody>
<tr>
**<th scope="row">1</th>**
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
<tr>
**<th scope="row">2</th>**
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
</tr>
<tr>
**<th scope="row">3</th>**
<td>Larry</td>
<td>the Bird</td>
<td>@twitter</td>
</tr>
</tbody>
</table>
谢谢。
在范围内,这不是“引导程序”。它指定标题单元格是列,行还是一组列或行的标题。回答有关scope = row的问题,它表示此字段将是您要写入的行的标题。您可以在这里找到更多信息:HTML th scope Attribute