What do you mean,-webkit-min-device-pixel-ratio:2?

Source: Internet
Author: User
Tags google galaxy samsung galaxy s iii

DPI (DPR) stands for dots per inch which technically means printer Dots per inch.

This parameter actually quantifies the physical resolution and display sharpness of the screen, such as the iphone's DPR 2, which is higher than the average phone.

The same images have a very different effect on different phones, especially for Apple devices, because their DPR are relatively high, so they generally have to

Application of high resolution image display can be guaranteed.

Common, you can use media query to apply a different style

@media (-webkit-min-device-pixel-ratio:2), (min-resolution:192dpi) {/     * retina-specific stuff here */}

Here are the parameter values for common phone models:

    • -webkit-min-device-pixel-ratio is 1.0
    1. All non-retina Mac
    2. All non-retina iOS devices
    3. Acer Iconia A500
    4. Samsung Galaxy Tab 10.1
    5. Samsung Galaxy S

    • -webkit-min-device-pixel-ratio is 1.3
    1. Google Nexus 7

    • -webkit-min-device-pixel-ratio is 1.5
    1. Google Nexus S
    2. Samsung Galaxy S II
    3. HTC Desire
    4. HTC Desire HD
    5. HTC Incredible S
    6. HTC Velocity
    7. HTC Sensation

    • -webkit-min-device-pixel-ratio is 2.0
    1. IPhone 4
    2. IPhone 4S
    3. IPhone 5
    4. IPad (3rd generation)
    5. IPad 4
    6. All Retina displays for Mac
    7. Google Galaxy Nexus
    8. Google Nexus 4
    9. Google Nexus 10
    10. Samsung Galaxy S III
    11. Samsung Galaxy Note II
    12. Sony Xperia S
    13. HTC One X

What do you mean,-webkit-min-device-pixel-ratio:2?

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.