Difference between width: 50% and flex: 50% in a CSS flexbox?

前端 未结 0 1420
北海茫月
北海茫月 2021-02-12 09:46

When its container has a display for flex, what is the difference between setting an element to be flex: 50% and width: 50%. The outcome appears to be the same:



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题