body { position: absolute; } .container { width: 1500px; display: flex; flex-wrap: wrap; justify-content: space-between; padding: 20px 15px 10px 15px; background-color: #f5f6fb; height: 100%; /* 设置容器高度,这里假设容器的父元素有固定高度或是占满整个视口 */ } .info_box { width: 465px; margin-right: 15px; margin-left: 15px; flex: 1; align-items: center; justify-content: center; } .logo { width: 100%; } body, .container { width: inherit; } .card_list .item { margin: 0px 10px 10px 10px; background: none; } .card_list .item.isNull { margin: 0px 10px 10px 10px; border-radius: 7px; height: 90px; position: relative; overflow: hidden; box-shadow: none !important; background: none !important; }