📜  实现自定义容器 - CSS 代码示例

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

代码示例1
.container {
  margin: 0 auto;
  max-width: 1280px;
  width: 90%;
}
@media only screen and (min-width: 601px) {
  .container {
    width: 85%;
  }
}
@media only screen and (min-width: 993px) {
  .container {
    width: 70%;
  }
}