【问题标题】:SASS + media queries + Bootstrap 3 modalSASS + 媒体查询 + Bootstrap 3 模态
【发布时间】:2017-03-17 17:46:34
【问题描述】:

ma​​x-device-width 为 480px 的情况下,我似乎找不到简单更改模态正文背景颜色的正确方法。

我做错了什么? (最终目的当然不是改变车身颜色)

.modal.blue.modal-fixed {
    .modal-body{
        color: map_get($colors, 'light');
        max-height: calc(100vh - 85px);
        overflow-y: auto;
        background: map_get($colors, 'dark-blue');
    }

    @media only screen and (max-device-width : 480px){
        .modal-body{
          background:#fff;
        }
     }
}

编辑:请注意,如果我尝试它会起作用

min-device-width : 480px

【问题讨论】:

    标签: twitter-bootstrap sass modal-dialog media-queries


    【解决方案1】:

    我不得不使用

    @media (max-width: 480px) 
    

    而不是

    @media only screen and (max-device-width : 480px)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-09-22
      • 2014-05-09
      • 2015-01-15
      • 1970-01-01
      • 2019-09-09
      • 2013-11-04
      • 2019-04-21
      • 1970-01-01
      相关资源
      最近更新 更多