html-css-手机端 和 pc端的显示

@media all and (min-width:1000px) {
.pc-a{
background-color: aqua;
}
.mo-a{
display: none;
}
}

@media all and (max-width:1000px) {
.mo{
display: block;
}
.pc{
display: none;
}
.mo-a{
background-color: red;
}
}

全屏是时候

html-css-手机端 和 pc端的显示

缩小的时候

html-css-手机端 和 pc端的显示

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2021-11-13
  • 2022-12-23
  • 2022-12-23
  • 2021-04-25
猜你喜欢
  • 2021-04-13
  • 2021-12-29
  • 2022-03-03
  • 2022-12-23
  • 2021-12-10
  • 2021-06-29
  • 2022-12-23
相关资源
相似解决方案