<div class="容器">
<div>1</div>
<div>2</div>
<div>3</div>
</div>
.容器 {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(560px, 1fr));
gap: 10px;
flex-direction: column;
overflow-y: scroll;
}
<div class="容器">
<div>1</div>
<div>2</div>
<div>3</div>
</div>
.容器 {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(560px, 1fr));
gap: 10px;
flex-direction: column;
overflow-y: scroll;
}