Realizing the adaptive use of Web page layout @media screen

Source: Internet
Author: User

Using @media screen to achieve the adaptive layout of the Web page, IE9 do not support @media screen

/*1280 resolution above (greater than 1200px) */@media screen and (min-width:1200px) {    . P1{color: #f00};} /*1100 resolution (greater than 960px, less than 1199px) */@media screen and (min-width:960px) and (max-width:1199px) {    . P2{color: #f00};} /*880 resolution (greater than 768px, less than 959px) */@media screen and (min-width:768px) and (max-width:959px) {    . P3{color: #f00};} /*720 resolution (greater than 480px, less than 767px) */@media only screen and (min-width:480px) and (max-width:767px) {    . P4{color: #f00};} /*440 resolution below (less than 479px) */@media only screen and (max-width:479px) {    . P5{color: #f00};}

Realizing the adaptive use of Web page layout @media screen

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.