browserAction.ColorArray

类型

一个包含四个整数(范围为 0-255)的 array,定义了一个 RGBA 颜色。这四个值分别指定以下通道:

  1. 红色
  2. 绿色
  3. 蓝色
  4. Alpha(不透明度)

例如,不透明的红色表示为 [255, 0, 0, 255]

浏览器兼容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Firefox for Android
Safari on iOS
ColorArray

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

备注: 此 API 基于 Chromium 的 chrome.browserAction API。该文档衍生自 Chromium 代码中的 browser_action.json