bt0
V2EX  ›  CSS

retina 屏幕的网页要怎么适配呢?

  •  
  •   bt0 · Mar 28, 2016 · 4991 views
    This topic created in 3897 days ago, the information mentioned may be changed or developed.

    自己的屏幕是 1080P 的,写好了网页,以为不错 但是在 Mac 上整个网页太小了 字也很小,几乎看不清了

    要加哪些条件呢?

    14 replies  •  2016-04-07 12:37:40 +08:00
    bt0
    bt0
    OP
    Mar 28, 2016
    1
    不是很懂 @media 谁给个链接
    adspe
    adspe
    Mar 28, 2016❤️1
    2
    @media
    (-webkit-min-device-pixel-ratio: 2),
    (min-resolution: 192dpi) {
    /* Retina-specific stuff here */
    }
    yangxiongguo
    yangxiongguo
    Mar 28, 2016 via iPad
    3
    上 rem
    bt0
    bt0
    OP
    Mar 28, 2016
    4
    @adspe 加这一条就好了吗
    s0f
    s0f
    Mar 28, 2016❤️1
    5
    不是加上就好,在里面改字体大小
    (-webkit-min-device-pixel-ratio: 2),
    (min-resolution: 192dpi) {
    /* Retina-specific stuff here */
    .****{
    font-size:16px;
    }
    }
    bt0
    bt0
    OP
    Mar 28, 2016
    6
    @s0f 好的 我试试
    adspe
    adspe
    Mar 28, 2016
    7
    那一条是针对 Retina 的 media query 记下来吧
    bt0
    bt0
    OP
    Mar 28, 2016
    8
    @bt0 记下来了 谢谢 #_#
    hahasong
    hahasong
    Mar 28, 2016❤️1
    9
    retina 的屏也是缩放显示的,在 1080p 上大小 ok ,在 Mac 上应该效果一致
    slixurd
    slixurd
    Mar 28, 2016❤️1
    10
    Retina 加上缩放后是 900px 。所以 1080 没问题在 Mac 上也没问题
    qcloud
    qcloud
    Mar 28, 2016
    11
    看着头像我就进来了
    bt0
    bt0
    OP
    Mar 28, 2016
    12
    @qcloud 难道是青云?
    qcloud
    qcloud
    Mar 28, 2016
    13
    @bt0 腾讯云?
    bt0
    bt0
    OP
    Apr 7, 2016
    14
    @qcloud sorry #。#
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1869 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 10:39 · PVG 18:39 · LAX 02:39 · JFK 05:39
    ♥ Do have faith in what you're doing.