Flexbox wraps last column of the first row in Safari

前端 未结 12 700
长发绾君心
长发绾君心 2020-11-30 18:52

The last column of the first row is wrapped to the next line when viewing in Safari, and some other iOS based browsers.

Safari:

12条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-30 19:26

    I know the issue is quite old, but I ran into this issue today, and wasted over 12 hours in fixing it. Though about 10 hours out of that were spent in realizing that safari is failing with 12-column bootstrap grid, and it is no other issue.

    Fix that I made is rather simple. Here is the version for Visual Composer. Class names may vary for other frameworks.

    .vc_row-flex:before, .vc_row-flex:after{
      width: 0;
    }
    

提交回复
热议问题