HTML Bootstrap 3媒体查询

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了HTML Bootstrap 3媒体查询相关的知识,希望对你有一定的参考价值。

/*==========  Mobile First Method  ==========*/

/* Custom, iPhone Retina */ 
@media only screen and (min-width : 320px) {

}

/* Extra Small Devices, Phones */ 
@media only screen and (min-width : 480px) {

}

/* Small Devices, Tablets */
@media only screen and (min-width : 768px) {

}

/* Medium Devices, Desktops */
@media only screen and (min-width : 992px) {

}

/* Large Devices, Wide Screens */
@media only screen and (min-width : 1200px) {

}



/*==========  Non-Mobile First Method  ==========*/

/* Large Devices, Wide Screens */
@media only screen and (max-width : 1200px) {

}

/* Medium Devices, Desktops */
@media only screen and (max-width : 992px) {

}

/* Small Devices, Tablets */
@media only screen and (max-width : 768px) {

}

/* Extra Small Devices, Phones */ 
@media only screen and (max-width : 480px) {

}

/* Custom, iPhone Retina */ 
@media only screen and (max-width : 320px) {

}

html Bootstrap Starter HTML

<!doctype html>
<html>
  <head>
      <title>Development Sever</title>
      <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
      <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto">
      <style>
        body { font-family: 'Roboto', serif; font-size: 48px; }
        .jumbotron { font-size: 3rem; padding: 10px; text-align: center; }
      </style>
  </head>
  <body>
      <div class="jumbotron">
          Development Server
          <h5>Use <code>$ live-server</code> (installed globally)</h5>
      </div>
  </body>
</html>

以上是关于HTML Bootstrap 3媒体查询的主要内容,如果未能解决你的问题,请参考以下文章

Bootstrap 3.0 媒体查询

Java单体应用 - 常用框架 - 01.Bootstrap - 媒体查询

覆盖 Bootstrap 3 媒体查询

css #Bootstrap,#CSS:Bootstrap 3媒体查询

html Bootstrap默认媒体查询

html Bootstrap默认媒体查询