My Bootstrap 4 responsive column layout not working

前端 未结 4 1512
感动是毒
感动是毒 2021-01-24 02:20

So I made a very simple responsive website layout using Bootstrap 4 so according to the code the no of columns should become 4 when it enters tablet mode ie when the viewport is

4条回答
  •  心在旅途
    2021-01-24 02:51

    You are using col-lg-2 col-md-3 col-sm-12 classes if you want same view to mobile devices too just use col, like col-3. if you want full width for smallest devices use col-xs-12 it is not important, default is col-xs-12 you can change it col-xs-6 something like that.

提交回复
热议问题