search

Home  >  Q&A  >  body text

前端 - display:box box-flex 和 display:flex flex 有什么区别?

display:box box-flex 和 display:flex flex 有什么区别?

http://css.doyoe.com/ 在这里找到答案了

伊谢尔伦伊谢尔伦2849 days ago959

reply all(2)I'll reply

  • 巴扎黑

    巴扎黑2017-04-17 11:28:28

    flexbox is a CSS flexible box layout module, and the standards are constantly changing during the development process:

    1. display:box,box-{*} is the 2009 version of flexbox

    2. display:flexbox, or the function flex(), is a strange hybrid in 2011

    3. display:flex, flex-{*}, is the standard released in 2012 that is currently in use

    The trend is of course to follow the latest standards, but the front-end issue must of course be decided based on the support of the browser. If the lower version of the browser only supports the old standard, and we need to support For this part of the browser, you must also write it, but their usage is still very similar, so for the sake of compatibility, it is understandable to write it at the same time.

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 11:28:28

    display:box box-flex is an early use of flex layout, it is no longer standardized, display:flex is standard

    reply
    0
  • Cancelreply