非标准
该特性是非标准的,请尽量不要在生产环境中使用它!

-moz-binding 属性被基于 Mozilla 的应用程序用于附加 XBL 绑定到 DOM 元素。

初始值none
适用元素all elements except generated content or pseudo-elements
是否是继承属性
适用媒体visual
计算值as specified
Animation typediscrete
正规顺序the unique non-ambiguous order defined by the formal grammar

语法

/* <uri> value */
-moz-binding: url(http://www.example.org/xbl/htmlBindings.xml#checkbox);

/* Global values */
-moz-binding: inherited;
-moz-binding: initial;
-moz-binding: unset;

取值

<uri>
The URI for the XBL binding (including the fragment identifier).
none
No XBL binding is applied to the element.

正式语法

<url> | none

示例

.exampleone {
  -moz-binding: url(http://www.example.org/xbl/htmlBindings.xml#radiobutton);
}

规范

Not part of any specification.

浏览器兼容性

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 未实现 (Yes) 未实现 未实现 未实现
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support 未实现 未实现 ? 未实现 未实现 未实现

1. XBL is deprecated and being removed (See bug 1397874).

参见

文档标签和贡献者

此页面的贡献者: teoli, RainSlide, 1986slayer
最后编辑者: teoli,