Home  >  Q&A  >  body text

关于screen.width和screen.height识别屏幕分辨率的问题?

关于screen.width和screen.height识别屏幕分辨率的问题

phpcn_u226phpcn_u2262863 days ago1203

reply all(3)I'll reply

  • 数据分析师

    数据分析师2017-09-30 22:55:00

    About screen.width and screen.height to identify the screen resolution?-PHP Chinese website Q&A-About screen.width and screen.height to identify the screen resolution?-PHP Chinese website Q&A

    Take a look and learn .

    reply
    0
  • 阿神

    阿神2016-12-19 13:42:23

    这是苹果自己的技术,虽然屏幕是2880*1800,但是对于浏览器而言是1440*900,只是mac用四倍分辨率进行渲染,以保证提高清晰度的同时,网页不会缩小。比如html中是14px的字体,在mac上其实是按照28px进行渲染的,但是对于html而言,你的浏览器其实是正常显示的14px的尺寸。这样熟,你能理解了吧

    reply
    0
  • phpcn_u226

    phpcn_u2262016-12-19 13:41:38

    不好意思,问题没写清楚,我想问的是mac Retina的屏幕,这种方法不能正确的显示出正真的分辨率,都是打对折了 。有人知道怎么解决这个问题么?

    我的电脑真是分辨率是2880*1800的,但是用这个方法识别出来的,是1440*900


    reply
    0
  • Cancelreply