Front-end - What does display: -webkit-flex; mean?
仅有的幸福
仅有的幸福 2017-06-12 09:24:35
0
4
2201

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

仅有的幸福
仅有的幸福

reply all(4)
迷茫

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.

漂亮男人

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

仅有的幸福

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

伊谢尔伦

Search engines are a good thing, really

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template