zictos
V2EX  ›  CSS

前端高分屏下测量像素的工具有哪些(系统存在 dpi 缩放)?

  •  
  •   zictos · Feb 2, 2021 · 2348 views
    This topic created in 1925 days ago, the information mentioned may be changed or developed.

    比如分辨率 1920*1080 的显示器,在 windows 中设置缩放比例为 125%,在浏览器中实际获取到的分辨率会变成 1536x864 。

    也就是原来 1920 的宽度变成了 1536 (即原来的 80%),1920*80%=1536 像素。如果是真正的高分屏(比如 4K 屏),那视情况缩放会大很多。

    但通过截图工具截取整个屏幕,截图工具上显示的宽度还是 1920,有没有按缩放比例显示具体像素的截图工具呢?

    3 replies    2021-02-02 19:22:33 +08:00
    Livid
        1
    Livid  
    MOD
    PRO
       Feb 2, 2021   ❤️ 1
    这个工具类似 macOS 下的 xScope,不知道能否满足你的需求:

    https://www.rulerforwindows.com/
    zictos
        2
    zictos  
    OP
       Feb 2, 2021

    我看到的字是模糊的
    zictos
        3
    zictos  
    OP
       Feb 2, 2021
    @Livid #1
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   933 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 20:51 · PVG 04:51 · LAX 13:51 · JFK 16:51
    ♥ Do have faith in what you're doing.