browserAction.ColorArray
类型
一个包含四个整数(范围为 0-255)的 array
,定义了一个 RGBA 颜色。这四个值分别指定以下通道:
- 红色
- 绿色
- 蓝色
- Alpha(不透明度)
例如,不透明的红色表示为 [255, 0, 0, 255]
。
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | ||||||
---|---|---|---|---|---|---|---|
ColorArray |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on 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.
备注:
此 API 基于 Chromium 的 chrome.browserAction
API。该文档衍生自 Chromium 代码中的 browser_action.json
。