跳至主要內容

按浏览器宽度应用不同样式

Nemo Zhang小于 1 分钟前端技术cssscss

按浏览器宽度应用不同样式

以下是一个例子。

@media all and (max-width: 768px) {
    // styles for mobile devices here
}
@media all and (min-width: 769px) {
    // styles for desktop devices here
}
上次编辑于: