Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

flex

这篇翻译不完整。请帮忙从英语翻译这篇文章

flex
Type: string (representing an integer)
类型:字符串 (string) 表示一个整数
Indicates the flexibility of the element, which indicates how an element's container distributes remaining empty space among its children. Flexible elements grow and shrink to fit their given space. Elements with larger flex values will be made larger than elements with lower flex values, at the ratio determined by the two elements. The actual value is not relevant unless there are other flexible elements within the same container. Once the default sizes of elements in a box are calculated, the remaining space in the box is divided among the flexible elements, according to their flex ratios. Specifying a flex value of 0 has the same effect as leaving the flex attribute out entirely.
指示一个元素的伸缩性,

 

文档标签和贡献者

 此页面的贡献者: small-chair, ziyunfei, Mhoudg
 最后编辑者: small-chair,