[英]Should I NOT put a bootstrap table inside of a DIV with the bootstrap 'row' class
我将引导表放在引导行内。 我假设所有内容都必须包含在具有引导类“ 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>
表格是否不需要“行”类? 如果不将表格放在引导行中,是否会得到一些意外的结果?
没有必要。 仅当使用Bootstrap网格系统的column( col-*-*
)类时,才需要row
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.