What is the difference among col-lg-*, col-md-* and col-sm-* in Bootstrap?

前端 未结 11 1386
别跟我提以往
别跟我提以往 2020-11-22 14:39

What is the difference among col-lg-* , col-md-* and col-sm-* in Twitter Bootstrap?

11条回答
  •  半阙折子戏
    2020-11-22 15:21

    well it's used to tell bootstrap how many columns are to be placed in a row depending on the screen size-

    col-xs-2
    

    would show only 2 columns in a row in extra small(xs) screen, in the same way as sm defines a small screen, md(medium sized), lg(large sized), but according to bootstrap smaller first rule, if you mention

    xs-col-2 md-col-4
    

    then 2 columns would be shown in every row for screen sizes from xs upto sm(included) and changes when it gets next size i.e. for md up to lg(included) for a better understanding of screen sizes try running them in various screen modes in chrome's developer mode(ctr+shift+i) and try various pixels or devices

提交回复
热议问题