search

Home  >  Q&A  >  body text

css3 - flex容器中有三个item,怎么让后两个在一起?

flex容器中有三个item,容器设置:flex容器设置display: flex;justify-content: space-between;怎么让后两个子元素挨在一起?

PHP中文网PHP中文网2778 days ago471

reply all(5)I'll reply

  • ringa_lee

    ringa_lee2017-04-17 11:40:52

    It cannot be done directly through flex, but you can make the last two elements in the same p, and then the p can be flexed with other elements

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 11:40:52

    Just put the last two under one p

    reply
    0
  • 高洛峰

    高洛峰2017-04-17 11:40:52

    At least draw a picture of what it looks like.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 11:40:52

    You can set attributes on child elements!

    reply
    0
  • 迷茫

    迷茫2017-04-17 11:40:52

    Set row height?

    reply
    0
  • Cancelreply