Bootstrap 3 and .col-xs-* — Do you not need rows of 12 units?

后端 未结 3 2189
悲哀的现实
悲哀的现实 2021-02-14 09:47

I\'m a little confused by the Bootstrap 3 documentation and thus usage of the .col-xs-* classes.

The docs for Grid Options say that all of the grid systems

3条回答
  •  一个人的身影
    2021-02-14 10:02

    The amount of rows a column occupies is the last number of the class.

    So for example, these following classes:

    .col-xs-12 .col-md-8  
    .col-xs-6 .col-md-4
    

    will result in a single row on the md-width displays but one and a half row on xs-width displays.
    This simply means that on small displays those elements won't display side-by-side, but instead on top of each other.

提交回复
热议问题