0
我正在使用引導程序3並試圖弄清楚如何獲得一些結果以在表中水平對齊而不是垂直對齊。見我bootply在水平表中顯示結果
我要實現的是這樣的:
Peter| Orange, banana, apple
John | Apple, orange
Mary |
Sam | Orange
但我不斷收到這樣的:
Peter|
Orange,
banana,
apple
John |
Apple,
orange
Mary |
Sam |
Orange
的HTML
<div class="container">
<div class="row">
<br>
<span class="label label-default\">table</span>
<h2>Table 2</h2>
<table><tbody><tr><td><span class="label label-default">Mary</span></td></tr><tr><td><span class="label label-success"></span></td></tr></tbody></table><table><tbody><tr><td><span class="label label-default">John</span></td></tr><tr><td><span class="label label-success">banana</span></td></tr></tbody></table><table><tbody><tr><td><span class="label label-default">Peter</span></td></tr><tr><td><span class="label label-success">orange</span></td></tr><tr><td><span class="label label-success">orange</span></td></tr></tbody></table><table><tbody><tr><td><span class="label label-default">Sue</span></td></tr><tr><td><span class="label label-success">orange</span></td></tr><tr><td><span class="label label-success">apple</span></td></tr></tbody></table>
</div> <!-- /col.8 -->
</div><!-- /center-block -->