Media Fit Screen

Source: Internet
Author: User

<! DOCTYPE Html>"Utf-8"/><title> @media </title><meta name="Hugo"Content=""/><style>. test1,.test2 {display:none;}/*This section is CSS2 part, IE8 and below only support this section*/@media Screen {body{color: #f00;}}/*The following is the CSS3 section*/@media screen and (min-width:960px) and (max-width:1024px) {body{background: #999; }} @media screen and (min-width:768px) and (max-width:960px) {. test1 {display:block;}} @media screen and (min-width:468px) and (max-width:768px) {. test2 {display:block;}}</style>class="test1"> (min-width:768px) and (max-width:960px) </div><divclass="test2"> (min-width:468px) and (max-width:768px) </div></body>

Media Fit Screen

Related Article

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.