【问题标题】:Bootstrap responsive columns conflict引导响应列冲突
【发布时间】:2019-07-23 22:14:15
【问题描述】:

我有一个我提供的 div col-xl-21 col-lg-20 col-md-20 offset-sm-0 offset-lg-2 offset-xl-2 offset-md-3 类。现在的问题是 xl 不断超越 md 样式。我的代码中是否缺少某些内容?

 <div className="col-xl-21 col-lg-20 col-md-20 offset-sm-0 offset-lg-2 offset-xl-2 offset-md-3">{renderTable()}</div>

在中等桌面屏幕上,它应该使用md 样式。同理,lg 用于大屏幕,xl 用于超大屏幕。

【问题讨论】:

    标签: css twitter-bootstrap


    【解决方案1】:

    引导程序中允许的最大col-**-**col-**-12。以下是断点。
    超越col-**-12 没有任何意义

    .col-xs- <768px Extra small
    .col-sm- >=768px Small
    .col-md- >=992px Medium
    .col-lg- >=1200px Large
    

    Reference

    【讨论】:

      猜你喜欢
      • 2018-06-10
      • 2020-10-05
      • 2014-02-11
      • 2021-12-23
      • 2018-02-22
      • 1970-01-01
      • 2014-03-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多