css css3mediaqueries

Posted

tags:

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

/* ---------------------------------------------------------------------------------------------------------------------

  88888888e.     d8b       88888888e.       d8b       8bc:..  88888    .8888888.    88888  888888888.        d8b
  888888888b    d888b      888888888b      d888b      888888bb88888   d888888888b   88888  8888888888b      d888b
  888888888D   d88888b     888888888D     d88888b     8888888888888  C88888888888D  88888  88888888888D    d88888b
  88888888P   d8888888b    88888888P     d8888888b    8888888888888  C88888888888D  88888  88888888888D   d8888888b
  888888P    d888888888b   88888888b    d888888888b   8888888888888   d888888888P   88888  8888888888b   d888888888b
  88888     d88888888888b  888888888b  d88888888888b  8888888888888    '8888888'    88888  888888888'   d88888888888b

------------------------------------------------------------------------------------------------------------------------

    Author: Rafal Bromirski
    www: http://paranoida.com/
    blog: http://lab.paranoida.com/

    twitter: http://twitter.com/paranoida
    dribbble: http://dribbble.com/paranoida

    Licensed under a MIT License

--------------------------------------------------------------------------------------------------------------------- */


/* --- main content ------------------------------------------------------------------------------------------------- */



/* --- media queries ------------------------------------------------------------------------------------------------ */

@media screen and (max-width: 1600px)
{
}

@media screen and (max-width: 1400px)
{
}

@media screen and (max-width: 1200px)
{
}

@media screen and (max-width: 1024px)
{
}

@media screen and (max-width: 1000px)
{
}

@media screen and (max-width: 800px)
{
}

@media screen and (max-width: 768px)
{
}

@media screen and (max-width: 640px)
{
    /* to avoid the adjustment of fonts on iOS devices you should keep this line */
    * { -webkit-text-size-adjust: none; -ms-text-size-adjust: none; }
}

@media screen and (max-width: 600px)
{
}

@media screen and (max-width: 480px)
{
}

@media screen and (max-width: 400px)
{
}

@media screen and (max-width: 320px)
{
}


/* --- iPad --------------------------------------------------------------------------------------------------------- */

@media screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation:portrait)
{
}

@media screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation:landscape)
{
}


/* --- iPhone 4(S) retina ------------------------------------------------------------------------------------------- */

@media screen and (-webkit-min-device-pixel-ratio: 1.5),
screen and (min-device-pixel-ratio: 1.5)
{
}


/* --- iPhone ------------------------------------------------------------------------------------------------------- */

@media screen and (max-device-width: 640px) and (-webkit-device-pixel-ratio: 1),
screen and (max-device-width: 640px) and (device-pixel-ratio: 1)
{
}


/* --- print (optional) --------------------------------------------------------------------------------------------- */

@media print
{
}

以上是关于css css3mediaqueries的主要内容,如果未能解决你的问题,请参考以下文章

1:CSS中一些@规则的用法小结 2: @media用法详解

前端面试题

JS/JQ常见兼容辅助插件

Bootstrap补充

Boostarp-响应式

IE9以下浏览器对CSS3的常用兼容处理