草案
此页面不完整。

PaintWorklet.devicePixelRatio 只读特性在 PaintWorklet interface returns the current device's ratio of physical pixels to logical pixels.

句法

var devicePixelRatio = paintWorklet.devicePixelRatio;
					

A double-precision integer.

规范

规范 状态 注释
CSS Painting API Level 1
The definition of 'PaintWorklet.devicePixelRatio' in that specification.
工作草案 初始定义。

浏览器兼容性

The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.

No compatibility data found. Please contribute data for "api.PaintWorklet.PaintWorklet.devicePixelRatio" (depth: 1) to the MDN 兼容性数据存储库 .

另请参阅

元数据

  • 最后修改: