What is the difference between inline-flex and flex in flex layout properties?

such as the title, many articles on the Internet just introduce the definition. It doesn"t explain the difference between them and how to choose in actual development. All of you are here to consult your seniors

Mar.24,2021

inline-flex , like inline-block , is a display:flext container for internal elements and a inline block for external elements.


* * flex: displays the object as an elastic expansion box

inline-flex: displays the object as an inline block-level stretch box * *
take a closer look at this

Menu