I have started a migration to grid system using Bootstrap 3, but the examples in the documentation are all using DIVs:
http://getbootstrap.com/css/#grid
I made a somewhat redundant code that mixes the DIV classes with TABLE tags/classes:
http://getbootstrap.com/css/#tables
The problem is that the layout dobles the borders and I think the should be a better way of doing that. Any recommendations on that?
An example code in Fiddle: http://jsfiddle.net/7g8nV/1/
<div class="table-responsive">
<table class="table table-bordered">
<tr class="row">
<td class="field-label col-md-3 active">
<label>Field 1:</label>
</td>
<td class="col-md-9">
Value 1
</td>
</tr>
<tr class="row">
<td class="field-label col-md-3 active">
<label>Field 2:</label>
</td>
<td class="col-md-9">
Value 2
</td>
</tr>
<tr class="row">
<td class="field-label col-md-3 active">
<label>Field 3:</label>
</td>
<td class="col-md-9">
Value 3
</td>
</tr>
</table>
</div>
Thanks in advance.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…