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

前端 未结 0 687
日久生厌
日久生厌 2021-02-12 09:57

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:



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