非标
此特征是非标准的,且不在标准轨道中。不要在面向 Web 的生产站点中使用它:它不适用于每个用户。实现之间可能存在大的不兼容性,且行为将来可能改变。

注意 : Since Firefox 58 , this media feature is no longer available to web content — it is only available internally (e.g. to XUL / chrome code). See bug 1396066 了解更多细节。

-moz-windows-accent-color-in-titlebar Gecko-only CSS media feature can be used to apply styles based on whether accent colors are enabled in Microsoft Windows titlebars.

句法

<integer>

In recent Windows versions (e.g., 10), if accent colors are enabled in window titlebars, this is 1. Otherwise it's 0.

Media: media/visual
Accepts min/max prefixes: no

范例

@media (-moz-windows-accent-color-in-titlebar: 1) {
  h1 {
    color: -moz-win-accentcolortext;
  }
  body {
    background-color: -moz-win-accentcolor;
  }
}
					

另请参阅

  • This feature is closely related to the Mozilla-specific <color> -moz-win-accentcolor and -moz-win-accentcolortext , which allow you to access the Windows accent and overlaid text accent colors from CSS.

元数据

  • 最后修改:
  1. CSS
  2. CSS 参考