search

Home  >  Q&A  >  body text

Front-end - What does display: -webkit-flex; mean?

I was watching a tutorial and there was such an attribute. Does this have the same meaning as display: flex;?
Thanks!

仅有的幸福仅有的幸福2722 days ago2205

reply all(4)I'll reply

  • 迷茫

    迷茫2017-06-12 09:26:35

    For compatibility, usually write both of them, as follows

    #main {
            display: flex;
            display:-webkit-flex;
            
        }
    

    This way the compatibility is better. Which one to use is left to the browser to decide. Both effects are the same.

    reply
    0
  • 漂亮男人

    漂亮男人2017-06-12 09:26:35

    -webkit- is the browser prefix, compatible with older browsers

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-06-12 09:26:35

    Flexible layout, in order to be compatible with webkit kernel. So add -webkit, and -moz, -ms, -o compatibility.

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-06-12 09:26:35

    Search engines are a good thing, really

    reply
    0
  • Cancelreply