aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/mozilla/tech/xul/attribute/orient/index.html
blob: aa1c735a6c413b543c7e935de7b74772886709e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
title: orient
slug: Mozilla/Tech/XUL/Attribute/orient
translation_of: Archive/Mozilla/XUL/Attribute/orient
---
<p><strong>布局(orient)</strong></p>
<dl>
 <dd>
  值类型:可以是下面值中的一种。<br>
  指定了子控件的布局(orient)为水平分布的(horizontally)或者是垂直分布的(vertically)。默认值依赖于控件本身。你也可以使用<a href="cn/-moz-box-orient">-moz-box-orient</a>中的样式属性。
  <ul>
   <li><strong>horizontally</strong>: 子控件会被按照在xul源文件中出现的位置依次布置在一行中。</li>
   <li><strong>vertically</strong>: 子控件会被按照在xul源文件中出现的位置依次布置在一列中。</li>
  </ul>
 </dd>
</dl>