Use flexbox order to order item between DOM-ordered items
问题 Is it possible to use order: 2 and have that flex item be positioned in order without setting order on the other items? div elements without order are shown in DOM order, however the following won't move the order: 2 element in between the DOM-ordered elements because the elements don't have an order specified. div.flex-container { display: flex; } div.flex-container div { flex-basis: 10px; } div.order-2 { order: 2; -webkit-order: 2; } <div class="flex-container"> <div>a</div> <div>b</div>