aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/mozilla/tech/xul/attribute/buttons/index.html
blob: 5759eabd90f564a92fb0211d3411625f533eda25 (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
---
title: buttons
slug: Mozilla/Tech/XUL/Attribute/buttons
translation_of: Archive/Mozilla/XUL/Attribute/buttons
---
<div class="noinclude">
 <span class="breadcrumbs XULRefProp_breadcrumbs">« <a href="/zh-CN/docs/XUL_Reference" title="XUL_Reference">XUL Reference</a></span></div>
<dl>
 <dt>
  <code><span><a href="https://developer.mozilla.org/zh-CN/docs/XUL/Property/buttons">buttons</a></span></code></dt>
 <dd>
  类型: 列表,下面的值用逗号分隔</dd>
 <dd>
  需要显示在对话框上的按钮的一个列表,使用逗号分隔。将按钮放置在合适的位置,将根据用户平台自动执行基本的事件处理。在列表中可以使用以下值:
  <ul>
   <li><code>accept</code>:“确定”按钮,按下按钮时将接受更改。此按钮为默认按钮。</li>
   <li><code>cancel</code>:“取消”按钮,将取消操作。</li>
   <li><code>help</code>:“帮助”按钮,在对话框显示一个“帮助”按钮。</li>
   <li><code>disclosure</code>:“更多信息”按钮,显示一个“more info”按钮。该按钮可能是一个按钮或一个三角形。</li>
   <li><code>extra1</code>:一个可选的额外的按钮。你可以通过<code><code id="a-buttonlabelextra1"><a href="https://developer.mozilla.org/zh-CN/docs/Mozilla/Tech/XUL/Attribute/buttonlabelextra1">buttonlabelextra1</a></code></code> 属性设置它的label。</li>
   <li><code>extra2</code>:第二个可选的额外的按钮。你可以通过 <code><code id="a-buttonlabelextra2"><a href="https://developer.mozilla.org/zh-CN/docs/Mozilla/Tech/XUL/Attribute/buttonlabelextra2">buttonlabelextra2</a></code></code> 属性设置它的label。</li>
  </ul>
 </dd>
</dl>
<div class="noinclude">
 <p></p>
</div>
<p> </p>