在 Xul 中有没有比以下方法更简单的居中标签的方法?
<xul:hbox>
<xul:spacer flex="1" />
<xul:label id="myLabel" value="LABEL"/>
<xul:spacer flex="1" />
</xul:hbox>
最佳答案
是的。使用盒装通过 the pack attribute .
<hbox pack="center"><label id="myLabel" value="LABEL"/></hbox.
关于xul - 在 Xul 中将标签居中的更简单方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4439979/