.card{ height: 50%; display: flex; //弹性布局 flex-wrap: wrap;//可以换行 overflow-y: scroll; //滚动条 white-space: nowrap;