blob: 5a26aec3c2fad222dc866a7f8f424865453986d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
---
title: '-moz-binding'
slug: Web/CSS/-moz-binding
tags:
- CSS
- CSS参考
- NeedsBrowserCompatibility
- NeedsUpdate
- XBL
- 不规范的
translation_of: Archive/Web/CSS/-moz-binding
---
<div>{{Non-standard_header}}{{CSSRef}}</div>
<p><strong><code>-moz-binding</code></strong> 属性被基于 Mozilla 的应用程序用于附加 <a href="/zh-CN/docs/XBL">XBL</a> 绑定到 DOM 元素。</p>
<p>{{cssinfo}}</p>
<h2 id="语法">语法</h2>
<pre class="brush:css">/* <uri> value */
-moz-binding: url(http://www.example.org/xbl/htmlBindings.xml#checkbox);
/* Global values */
-moz-binding: inherited;
-moz-binding: initial;
-moz-binding: unset;
</pre>
<h3 id="取值">取值</h3>
<dl>
<dt><uri></dt>
<dd>The URI for the XBL binding (including the fragment identifier).</dd>
<dt><code>none</code></dt>
<dd>No XBL binding is applied to the element.</dd>
</dl>
<h3 id="正式语法">正式语法</h3>
<pre class="syntaxbox">{{csssyntax}}</pre>
<h2 id="示例">示例</h2>
<pre class="brush: css">.exampleone {
-moz-binding: url(http://www.example.org/xbl/htmlBindings.xml#radiobutton);
}</pre>
<h2 id="规范">规范</h2>
<p>Not part of any specification.</p>
<h2 id="浏览器兼容性">浏览器兼容性</h2>
<div class="bc-old">
<p>{{CompatibilityTable}}</p>
<div id="compat-desktop">
<table class="compat-table">
<tbody>
<tr>
<th>Feature</th>
<th>Chrome</th>
<th>Firefox (Gecko)</th>
<th>Internet Explorer</th>
<th>Opera</th>
<th>Safari (WebKit)</th>
</tr>
<tr>
<td>Basic support</td>
<td>{{CompatNo}}</td>
<td>{{CompatVersionUnknown}}</td>
<td>{{CompatNo}}</td>
<td>{{CompatNo}}</td>
<td>{{CompatNo}}</td>
</tr>
</tbody>
</table>
</div>
<div id="compat-mobile">
<table class="compat-table">
<tbody>
<tr>
<th>Feature</th>
<th>Android</th>
<th>Chrome for Android</th>
<th>Firefox Mobile (Gecko)</th>
<th>IE Mobile</th>
<th>Opera Mobile</th>
<th>Safari Mobile</th>
</tr>
<tr>
<td>Basic support</td>
<td>{{CompatNo}}</td>
<td>{{CompatNo}}</td>
<td>{{CompatUnknown}}</td>
<td>{{CompatNo}}</td>
<td>{{CompatNo}}</td>
<td>{{CompatNo}}</td>
</tr>
</tbody>
</table>
</div>
<p id="compatNote_1">1. XBL is deprecated and being removed (See {{bug(1397874)}}).</p>
<h2 id="参见">参见</h2>
<ul>
<li><a href="/en-US/docs/XBL/XBL_1.0_Reference/Binding_Attachment_and_Detachment">XBL 参考文档:绑定的固定与脱离</a></li>
<li><a href="/en-US/docs/Mozilla/Tech/XUL/Tutorial/Introduction_to_XBL">XUL 教程:XBL 简介</a></li>
</ul>
</div>
|