1.使用命令行参数
//禁止cef进行dpi缩放 command_line->AppendSwitchWithValue("--force-device-scale-factor","1");
额外:
// Enable High-DPI support on Windows 7 or newer. CefEnableHighDPISupport();来自:http://www.lpime.cn/article/36
// Enable High-DPI support on Windows 7 or newer. CefEnableHighDPISupport();