css设置图片适配:显示中间部分(居中显示) 给对应的图片设置样式 { 100%; height: 100%; object-fit: cover; object-position: center; }