响应式布局

media 查询

当屏幕宽度满足特定条件时应用 css。

例如:

@media(min-width: 768px) {
    .container {
        width: 960px;
        background-color: lightblue;
    }
}

Bootstrap

bootstrap open in new window