[Retina] The 1 px border on the mobile phone, and the value of the chain

Source: Internet
Author: User

[Retina] The 1 px border on the mobile phone, and the value of the chain
 

1 pixel border, 2 "Placeholder" on the screen at 2x, 3 "Placeholder" on the screen at 3x, but the designer needs 1 "Placeholder"

 

1. content h1: after, 2. content h2: after {3 border-top: 1px solid # bfbfbf; 4 content: ''; 5 display: block; 6 width: 100%; 7 position: absolute; 8 left: 0; 9 bottom: 0; 10-webkit-transform-origin: left bottom; 11} 12/* Retina adaptation */13 @ media only screen and (-webkit-min-device-pixel-ratio: 2.0 ), 14 only screen and (min -- moz-device-pixel-ratio: 2.0), 15 only screen and (-o-min-device-pixel-ratio: 200/100 ), 16 only screen and (min-device-pixel-ratio: 2.0) {17. content h1: after, 18. content h2: after {19-webkit-transform: scaleY (0.5); 20 transform: scaleY (0.5 ); 21} 22} 23 24/* triple screen adaptation */25 @ media only screen and (-webkit-min-device-pixel-ratio: 2.5 ), 26 only screen and (min -- moz-device-pixel-ratio: 2.5), 27 only screen and (-o-min-device-pixel-ratio: 250/100 ), 28 only screen and (min-device-pixel-ratio: 2.5) {29. content h1: after, 30. content h2: after {31-webkit-transform: scaleY (0.33333334); 32 transform: scaleY (0.33333334); 33} 34}

 

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.