非标
此特征是非标准的,且不在标准轨道中。不要在面向 Web 的生产站点中使用它:它不适用于每个用户。实现之间可能存在大的不兼容性,且行为将来可能改变。
-moz-stack-sizing
is an extended
CSS
property. Normally, a
<xul:stack>
will change its size so that all of its child elements are completely visible. For example, moving a child of the stack far to the right will widen the stack so the child remains visible.
/* Keyword values */ -moz-stack-sizing: auto; -moz-stack-sizing: ignore; /* Global values */ -moz-stack-sizing: inherit; -moz-stack-sizing: initial; -moz-stack-sizing: unset;
If you wish to prevent the stack from resizing automatically to accommodate its children, you can set
-moz-stack-sizing
to
ignore
on the child element. The property is set not on the stack itself, but on the stack's children. This lets you ignore certain children, but not others.
注意: In previous versions of Gecko it was possible to work around the problem by setting very large negative bottom and right margins on the stack element and equally large positive bottom and right margins on the children whose size you didn't want to ignore. (The problem does not affect children moved above or to the left of the stack.)
| 初始值 |
stretch-to-fit
|
|---|---|
| 适用于 | 所有元素 |
| 继承 | yes |
| 计算值 | 如指定 |
| 动画类型 | discrete |
stretch-to-fit
The child will influence the stack's size.
ignore
The stack won't consider this child when calculating its size.
ignore | stretch-to-fit
.mainsheet {
-moz-stack-sizing: ignore;
}