mozilla
您的搜索结果

    flex-grow

    简介

    CSSflex-grow 属性指定了一个flex子元素自动增长方式。

    • 初始值 0
    • 适用元素 flex items, including in-flow pseudo-elements
    • 可继承 no
    • 适用媒体 visual
    • 计算值 as specified
    • 可动画 yes, as a number, except between 0 and other values
    • Canonical order the unique non-ambiguous order defined by the formal grammar

    See Using CSS flexible boxes for more properties and information.

    Syntax

    Formal syntax: <number>
    
    flex-grow: 3
    
    flex-grow: inherit
    

    Values

    <number>
    See <number>. Negative values are invalid.

    Examples

    element { 
      flex-grow: 3;
    }
    

    Specifications

    Specification Status Comment
    CSS Flexible Box Layout Module Candidate Recommendation  

    Browser compatibility

    Feature Firefox (Gecko) Chrome Internet Explorer Opera Safari
    Basic support 18.0 (18.0) (behind a pref) [1]
    20.0 (20.0)
    21.0-webkit Not supported 12.10 Not supported
    Feature Firefox Mobile (Gecko) Android IE Phone Opera Mobile Safari Mobile
    Basic support ? ? Not supported 12.10 Not supported

    [1] Firefox supports only single-line flexbox. To activate flexbox support, for Firefox 18 and 19, the user has to change the about:config preference "layout.css.flexbox.enabled" to true.

    See also

    文档标签和贡献者

    此页面的贡献者有: Ribery, teoli
    最后编辑者: teoli,