非标
此特征是非标准的,且不在标准轨道中。不要在面向 Web 的生产站点中使用它:它不适用于每个用户。实现之间可能存在大的不兼容性,且行为将来可能改变。
Deprecated since Gecko 57 (Firefox 57 / Thunderbird 57 / SeaMonkey 2.54)
This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the
兼容性表格
at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.
-moz-binding
CSS property is used by Mozilla-based applications to attach an
XBL
binding to a DOM element.
/* <url> value */ -moz-binding: url(http://www.example.org/xbl/htmlBindings.xml#checkbox); /* Global values */ -moz-binding: inherited; -moz-binding: initial; -moz-binding: unset;
<url>
The URL for the XBL binding (including the fragment identifier).
none
No XBL binding is applied to the element.
| 初始值 |
none
|
|---|---|
| 适用于 | all elements except generated content or pseudo-elements |
| 继承 | no |
| 计算值 | 如指定 |
| 动画类型 | discrete |
<url> | none
.exampleone {
-moz-binding: url(http://www.example.org/xbl/htmlBindings.xml#radiobutton);
}
Not part of any standard.
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
-moz-binding
弃用
非标
|
Chrome 不支持 No | Edge 不支持 No |
Firefox
不支持
1 — 67
注意事项
|
IE 不支持 No | Opera 不支持 No | Safari 不支持 No | WebView Android 不支持 No | Chrome Android 不支持 No |
Firefox Android
不支持
4 — 67
注意事项
|
Opera Android 不支持 No | Safari iOS 不支持 No | Samsung Internet Android 不支持 No |
不支持
非标。预期跨浏览器支持较差。
弃用。不要用于新网站。
见实现注意事项。