twitter-bootstrap - 为 col-* Bootstrap 3 个最大和最小分辨率

标签 twitter-bootstrap twitter-bootstrap-3

我对最新版本的 Bootstrap 印象深刻。我已经开始努力了。现在我可以理解网格系统适用于 4 列类大小变体,具有以下定义:

col-xs-* ---> mobile

col-sm-* ---> tablet

col-md-* ---> laptops

col-lg-* ---> large monitors

但是,我需要知道应用这些类的最小和最大分辨率是多少,以便我可以更好地设计布局。

我问这个是因为,我可以看到 col-md 类应用于 800px。我使用 Firefox 的响应式 View 模拟器生成了这个分辨率。

最佳答案

来自 the documentation for the grid :

/* Extra small devices (phones, less than 768px) / / No media query since this is the default in Bootstrap */

/* Small devices (tablets, 768px and up) */ @media (min-width: @screen-sm-min) { ... }

/* Medium devices (desktops, 992px and up) */ @media (min-width: @screen-md-min) { ... }

/* Large devices (large desktops, 1200px and up) */ @media (min-width: @screen-lg-min) { ... }



它还提供容器宽度:
  • .col-xs-*:无(自动)
  • .col-sm-*: 750 像素
  • .col-md-*: 970 像素
  • .col-lg-*: 1170 像素
  • 关于twitter-bootstrap - 为 col-* Bootstrap 3 个最大和最小分辨率,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21920333/

    相关文章:

    html - 在响应式网站中与半透明 div 重叠

    twitter-bootstrap - Bootstrap 导航栏在自定义大小框内没有响应

    html - 菜单中的 Logo 中心,两者都是使用 Bootstrap 响应的中心?

    html - 如何让我的栏目内容并排显示

    html - 在 Bootstrap header 内对齐右面板元素的正确方法

    javascript - Django 中的弹出 UserCreationForm

    html - Bootstrap 表单元格中的图像不会居中对齐

    jquery - Bootstrap (v4.4.1) 崩溃不适用于 jQuery (v3.5.0) - 错误 : Cannot convert object to primitive value

    html - Dropmenu 上的属性 Display : block, 有问题。不需要的 margin

    html - 两列 Bootstrap 布局