Linux 上 Chrome 的高 dpi 设置

rub*_*o77 5 google-chrome high-resolution

在 Firefox 的高分辨率屏幕上,您可以设置about:config

layout.css.devPixelsPerPx=2
Run Code Online (Sandbox Code Playgroud)

所以 Firefox 中的所有内容都有双倍大小。

chrome浏览器也有这样的设置吗?

jac*_*obq 5

google-chrome在 Linux 中使用,对我有用的是编辑启动器,以便它传递命令行参数--force-device-scale-factor=2

例如在 /usr/bin/google-chrome-stable 中

# ...
# Make sure that the profile directory specified in the environment, if any,
# overrides the default.
if [[ -n "$CHROME_USER_DATA_DIR" ]]; then
  # Note: exec -a below is a bashism.
  exec -a "$0" "$HERE/chrome"  \
    --force-device-scale-factor=2 \
    --user-data-dir="$CHROME_USER_DATA_DIR" "$@"
else
  exec -a "$0" "$HERE/chrome" \
    --force-device-scale-factor=2 \
    "$@"
fi
Run Code Online (Sandbox Code Playgroud)

查看Ubuntu 16.04 中的 Chrome UI 大小和缩放级别


归档时间:

查看次数:

10823 次

最近记录:

6 年,8 月 前