【发布时间】:2011-12-04 06:29:50
【问题描述】:
所以我有这个代码:
<toolbox id="navigator-toolbox">
<toolbar id="abar" accesskey="T"
class="chromeclass-toolbar" context="toolbar-context-menu"
hidden="false" persist="hidden">
<toolbarbutton id="ahah-b"
label="hahaa" class="toolbarbutton-1 chromeclass-toolbar-additional custombutton" />
<textbox id="search" />
<toolbarbutton id="search-b" label="Search" oncommand="search()" />
</toolbar>
</toolbox>
但是使用此代码,所有内容都会在工具栏中左对齐。是否可以让“ahah-b”工具栏按钮左对齐而“搜索”文本框和“搜索-b”按钮右对齐?
【问题讨论】:
-
:如果你使用flex属性元素和盒子元素,这将非常简单。 developer.mozilla.org/en/XUL_Tutorial/Element_Positioning>
标签: html firefox firefox-addon xul