using flexible layout, I originally intended to make the following page. The width of the right box div2 is the rest of the screen width, and the ul has a lot of li , which can be scrolled horizontally.

- html
- css
div2 has been stretched out, and the width of the browser screen has been enlarged.
is there any way to ensure a single screen and allow child elements to scroll horizontally?
