Firefox, Flexbox & overflow

后端 未结 5 1775
伪装坚强ぢ
伪装坚强ぢ 2020-12-24 03:03

After last firefox-update some of css3-code has been broken... Example (jsfiddle).

  • In chromium: \"normal,
5条回答
  •  [愿得一人]
    2020-12-24 03:45

    Display: flex; only needs to be on the container that needs to be flexible, not the inner elements. Here's the updated CSS, if you need a specific width, you can set that on form {}.

    CSS

    form {}
    
    #flex {
        display: flex;
        border: 1px solid green;
        outline: 1px solid red;
    }
    
    #flex > * {
        flex: 1;
    }
    
    label {}
    
    input {}
    

提交回复
热议问题