The problem of line wrapping in flex layout

when you want to wrap the third box and reduce the window to the minimum width, the box can still keep the top three, and the bottom three

.
Mar.20,2021

set flex-wrap + item's width to complete. Here is an example of the Nine Palace grid written earlier.
is similar. Please refer to
Live Demo
Source Code

.
Menu