Flexible box model - display : flex, box, flexbox?

前端 未结 2 1284
遥遥无期
遥遥无期 2020-11-27 05:23

Many of us are aware today that the older values of the display property like inline and block are outdated after the new flexible box

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-27 06:06

    As far as I know, the above three different versions of the flexible box model can be classified by their ages.

    1. display: box - This was the first flexible box model that was accepted as the newest model around the year 2009. Don't use it.

    2. display: flexbox - This flexible box model came in the year 2011 which was still in its development. Don't use it.

    3. display: flex - This is the newest flexible box model that currently finds its place as the latest box standard. This might further undergo some changes but this is preferred to the other two standards.

提交回复
热议问题