简体   繁体   English

Bootstrap Grid系统和表格元素

[英]Bootstrap Grid system and Table element

Has bootstrap grid system replaced need for table? 引导网格系统是否已取代桌子的需要? I mean I can divide a row in 3 parts by a table like: 我的意思是我可以将表格分为三部分,例如:

<table>
<tr>
<th></th>
<th></th>
<th></th>
</tr>

also by using grid like: 也可以使用如下网格:

 <div class="row">
 <div class="col-sm-4">.col-sm-4</div>
 <div class="col-sm-4">.col-sm-4</div>
 <div class="col-sm-4">.col-sm-4</div>
 </div>

Somehow it looks like I can use grids and table vice-versa. 看起来我可以以某种方式使用网格,反之亦然。 So if I have to place something in my navbar at some particular position what approach should I use? 因此,如果我必须在导航栏中的某个特定位置放置某些东西,应该使用哪种方法? Any help will be appreciated. 任何帮助将不胜感激。

The two are not equivalent at all - Bootstrap uses a grid system for layout, and tables for displaying tabular data. 两者根本不相等-Bootstrap使用网格系统进行布局,并使用来显示表格数据。

Generally, this is considered good practice. 通常,这被认为是好的做法。 Tables are difficult to make responsive (to alter layouts for mobile and tablet views), but they are excellent for displaying data similar to the way Microsoft Excel displays data. 表很难做出响应(更改移动设备和平板电脑视图的布局),但是它们非常适合显示数据,类似于Microsoft Excel显示数据的方式。

I recommend reading the Bootstrap documentation linked above, they explain when to use each. 我建议阅读上面链接的Bootstrap文档,它们解释何时使用它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM