Flexbox wraps last column of the first row in Safari

前端 未结 12 673
长发绾君心
长发绾君心 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:41

    Bootstrap 4 have issues with display: block; property when set either from css or from javascript on the .row class. I figured a solution for this Just create a class as:

    .display-block {
    	display: -webkit-box !important;
    	display: -ms-flexbox !important;
    	display: flex !important;
    	-ms-flex-wrap: wrap !important;
    	flex-wrap: wrap !important;
    }

    And then apply this class when you want to display the row.

提交回复
热议问题