.home-card-center, .home-card-center>.face { position: relative; width: 100%; height: 100%; z-index: 10; } .home-card-center>.date { font-size: 1.5rem; position: relative; top: calc(40% - 20vh / 2); display: flex; flex-wrap: wrap; } .home-card-center>.date .title { width: 100%; text-align: center; margin-bottom: 1.5rem; } .home-card-center>.date .remark { width: 80%; font-size: 1rem; text-align: center; margin: 0 auto; } video, canvas { width: 40vh; height: 40vh; position: absolute; top: calc(40% - 40vh / 2); left: calc(50% - 40vh / 2); border-radius: 100%; /* 视频内容填充元素的整个内容框,保持视频的宽高比并将视频内容铺满整个内容框,如果视频的宽高比和内容框不一致,视频会被裁剪 */ object-fit: cover; } .specialEffects { width: 40vh; height: 40vh; position: absolute; z-index: 1007 !important; transform: translate(-50%, -50%); top: 40%; left: 50%; background: url(../img/face_vef.png) no-repeat; background-size: 40vh 40vh; }