CSS3笔记 4 — Media Queries的使用方法

    xiaoxiao2021-03-25  56

    @media 设备类型 and (设备特征) { 栏式代码 }

    在样式的代码开头必须写@media ,然后定制设备的类型:

    设备特征是:min-width:400px 指设备宽度大于400px;

    例如:

    @media screen and (min-width:400px) { 样式代码; }
    转载请注明原文地址: https://ju.6miu.com/read-40087.html

    最新回复(0)