A container element which can contain any number of child elements. This is equivalent to the box
element, except it defaults to vertical orientation.
一个可以包含任何子元素的容器元素。这相当于默认为垂直方向的box
元素。
More information is available in the XUL tutorial.
更多信息参考XUL tutorial。
Example
示例
<!-- Two labels at bottom -->
<vbox>
<spacer flex="1"/>
<label value="One"/>
<label value="Two"/>
</vbox>
Attributes
属性
Inherited from XUL element
align ,
allowevents ,
allownegativeassertions ,
class ,
coalesceduplicatearcs ,
collapsed ,
container ,
containment ,
context ,
,
datasources ,
dir ,
empty ,
equalsize ,
flags ,
flex ,
height ,
hidden ,
id ,
insertafter ,
insertbefore ,
left ,
maxheight ,
maxwidth ,
,
minheight ,
minwidth ,
mousethrough ,
observes ,
ordinal ,
orient ,
pack ,
persist ,
,
position ,
preference-editable ,
querytype ,
ref ,
removeelement ,
sortDirection ,
sortResource ,
sortResource2 ,
statustext ,
style ,
template ,
tooltip ,
tooltiptext ,
top ,
uri ,
wait-cursor ,
width
|
Properties
特性
Inherited Properties align , attributes , allowEvents , baseURI , boxObject , builder , childElementCount , childNodes , children , className , clientHeight , clientLeft , clientTop , clientWidth , collapsed , contextMenu , controllers , database , datasources , dir , firstChild , firstElementChild , flex , height , hidden , id , lastChild , lastElementChild , left , localName , maxHeight , maxWidth , menu , minHeight , minWidth , namespaceURI , nextElementSibling , nextSibling , nodeName , nodeType , nodeValue , observes , ordinal , orient , ownerDocument , pack , parentNode , persist , prefix , previousElementSibling , previousSibling , ref , resource , scrollHeight , scrollLeft , scrollTop , scrollWidth , statusText , style , tagName ,textContent , tooltip , tooltipText , top , width |
Methods
方法
Inherited from XUL element blur , click , doCommand , focus , getElementsByAttribute Inherited from DOM element addEventListener() , appendChild() , dispatchEvent() , getAttribute() , getAttributeNode() , getAttributeNodeNS() , getAttributeNS() , getElementsByTagName() , getElementsByTagNameNS() , hasAttribute() , hasAttributeNS() , hasAttributes() , hasChildNodes() , insertBefore() , isSupported() , normalize() , removeAttribute() , removeAttributeNode() , removeAttributeNS() , removeChild() , removeEventListener() , replaceChild() , setAttribute() , setAttributeNode() , setAttributeNodeNS() , setAttributeNS() |
相关
- Elements
元素
box
, hbox