aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/mozilla/tech/xul/attribute/label/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/mozilla/tech/xul/attribute/label/index.html')
-rw-r--r--files/zh-cn/mozilla/tech/xul/attribute/label/index.html41
1 files changed, 0 insertions, 41 deletions
diff --git a/files/zh-cn/mozilla/tech/xul/attribute/label/index.html b/files/zh-cn/mozilla/tech/xul/attribute/label/index.html
deleted file mode 100644
index 1846c63a8e..0000000000
--- a/files/zh-cn/mozilla/tech/xul/attribute/label/index.html
+++ /dev/null
@@ -1,41 +0,0 @@
----
-title: label
-slug: Mozilla/Tech/XUL/Attribute/label
-tags:
- - XUL Attributes
- - XUL Reference
-translation_of: Archive/Mozilla/XUL/Attribute/label
----
-<div class="noinclude">
- <span class="breadcrumbs xulRefAttr_breadcrumbs">« <a href="/zh-CN/docs/XUL_Reference">XUL Reference home</a></span></div>
-<dl>
- <dt>
- <code id="a-label"><a href="https://developer.mozilla.org/zh-CN/docs/Mozilla/Tech/XUL/Attribute/label">label</a></code></dt>
- <dd>
- Type: <em>string</em></dd>
- <dd>
- The label that will appear on the element. If this is left out, no text appears.<br>
- label 在元素上显示。如果左侧出界,则不显示任何文字。</dd>
-</dl>
-<div class="noinclude">
- <h3 id="See_also" name="See_also">See also</h3>
- <ul>
- <li><a href="/cn/XUL/Attribute/treeitem.label" title="cn/XUL/Attribute/treeitem.label">treeitem.label</a>, <code><a href="/cn/XUL/label" title="cn/XUL/label">&lt;label&gt;</a></code> element</li>
- </ul>
- <h4 id="Examples_in_JavaScript" name="Examples_in_JavaScript">Examples in JavaScript</h4>
- <pre>&lt;label value="Whaw" id="the-big-label" command="the-big-button"/&gt;
-&lt;button id="the-big-button" label="Click me"
- oncommand="alert(document.getElementById('the-big-label').value)"/&gt;
-
-&lt;label id="myLabel" value="My label"/&gt;
-&lt;button label="Click me"
- oncommand="document.getElementById('myLabel').setAttribute('value','Value changed');" /&gt;
-
-&lt;checkbox label="my Checkbox" id="myCheckboX"/&gt;
-&lt;button label="Another click"
- oncommand="document.getElementById('myCheckboX').setAttribute('label','Still not checked');"/&gt;
-&lt;button label="Show label of checkbox"
- oncommand="alert( document.getElementById('myCheckboX').getAttribute('label') )"/&gt;
-</pre>
-</div>
-<p></p>