我将引导表放在引导行内。 我假设所有内容都必须包含在具有引导类“ row”的DIV元素中。
<div class='row'>
<div class="table-responsive">
<table id="idMyTbl" class="table table-striped">
<thead id='idTblHead'></thead>
<tbody id="idTblBody"></tbody>
</table>
</div>
</div>
但是,现在我想知道这是否是一个坏主意。 我还没有看到任何文档,该文档将表放在引导行的DIV标记内。 我没有看到将表放在一行之间的行为差异,但是似乎没有必要,因为表具有自己的行为,我认为它将独立于引导行类。
使用以下HTML结构更好吗?
<div class="table-responsive" id='idTableList' style='display:none'>
<table id="idMyTbl" class="table table-striped">
<thead id='idTblHead'></thead>
<tbody id="idTblBody"></tbody>
</table>
</div>
表格是否不需要“行”类? 如果不将表格放在引导行中,是否会得到一些意外的结果?