【问题标题】:Scale height of div when width of device is for mobile当设备宽度用于移动设备时,缩放 div 的高度
【发布时间】:2014-04-09 12:16:28
【问题描述】:

我正在构建一个使用非常大的标题图像的网站。当在移动设备上查看该网站时,我想将该标题 div 的高度缩放到桌面上的一半。

使用bootstrap 3 的最佳方法是什么?

【问题讨论】:

    标签: css twitter-bootstrap responsive-design twitter-bootstrap-3


    【解决方案1】:

    一个简单的媒体查询就可以了:

    @media all and (max-width: 480px) { // or whatever size you want to target
        // change header size
    }
    

    【讨论】:

    • 是的,呃。不知道我在想什么。
    猜你喜欢
    • 1970-01-01
    • 2017-02-08
    • 1970-01-01
    • 2023-04-09
    • 2011-06-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-15
    相关资源
    最近更新 更多