background_color
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
类型 | String |
---|---|
强制 | 否 |
background_color
成员为应用程序页面定义了一个占位背景颜色,以便在其样式表加载之前显示。当清单在样式表加载前可用时,用户代理会使用这个值来绘制快捷方式的背景颜色。
因此,background_color
应与 background-color
网站样式表中的 CSS 属性匹配,以在启动 Web 应用程序和加载网站内容之间进行平滑过渡。
备注:
该 background_color
成员仅用于在从网络或存储介质加载主样式表时改善用户体验。当渐进式 Web 应用程序样式表可用时,用户代理不会将 background-color
用作 CSS 属性。
实例
json
"background_color": "red"
规范
Specification |
---|
Web Application Manifest # background_color-member |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
background_color |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No 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.