Analysis of Media Queries example of CSS3
Most people do not understand the knowledge points of this "Media Queries case Analysis of CSS3" article, so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "Media Queries case Analysis of CSS3" article.
I. The attribute value Min/Max supported by Media Queries describes the number of colors in the color integer yes byte per color color-index integer yes color table device-aspect-ratio integer/integer yes width-to-height ratio device-height length yes device screen output height device-width length yes device screen output width grid integer no is a grid-based device height length yes rendering interface height monochrome integer yes monochrome frame buffer resolution per pixel Resolution yes resolution scan no tv media type scanning mode width length yes rendering interface width orientation Portrait/landscape no horizontal screen or vertical screen height min-height max-heightdevice-width min-device-width max-device-widthdevice-height min-device-height max-device-heightaspect-ratio min-aspect-ratio max-aspect-ratiodevice-aspect-ratio min-device-aspect-ratio max-device-aspect-ratiocolor min-color max-colorcolor-index min-color-index max-color-indexMonochrome min-monochrome max-monochromeResolution min-resolution max-resolution II, Keyword
And-combines multiple media queries not-excludes a defined media type only-is used to determine a specific media type
Example of quoting style. Inline style example @ media screen and (min-width: 980px) {/ / css code} @ screen and (min-width:768px) and (max-width:980px) {/ / css code} @ screen and (min-width:480) and (max-width: 768px) {/ / css code} @ screen and (max-width:320px) {/ / css code} @ media screen and (max-device-width: 480px) {/ / max-device-width equals 480px} @ media screen and (device-aspect-ratio: 16 Universe 9) Screen and (device-aspect-ratio: 16amp 10) {/ / device aspect ratio} @ media all and (orientation:portrait) {/ / vertical screen} @ media all and (orientation:landscape) {/ / horizontal screen} above is the content of this article on "Media Queries instance Analysis of CSS3" I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please pay attention to the industry information channel.