📜  什么是最大和最小宽度媒体查询 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:44.497000             🧑  作者: Mango

代码示例4
/* What this query really means, is If [device width] is less than or equal to 600px, then do */
@media only screen and (max-width: 600px)  {...}

/* What this query really means, is If [device width] is greater than or equal to 600px, then do */
@media only screen and (min-width: 600px) {...}