1、CSS3

CSS3 媒体查询

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    .example {background: green;}
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .example {background: blue;}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .example {background: orange;}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .example {background: pink;}
}

 

http://www.runoob.com/cssref/css3-pr-mediaquery.html

 

2.Bootstrap.v3

CSS3 媒体查询

https://v3.bootcss.com/css/

 

3.Bootstrap.v4

CSS3 媒体查询

https://v4.bootcss.com/docs/4.0/layout/overview/

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
  • 2021-10-18
猜你喜欢
  • 2021-12-28
  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
  • 2021-09-01
  • 2021-11-03
  • 2022-12-23
相关资源
相似解决方案