ft: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.3); border-radius: 3px; z-index: 1; } .custom-video-thumbnail::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 24px; height: 24px; background-color: rgba(255, 255, 255, 0.9); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E"); mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat; mask-position: center; -webkit-mask-position: center; border-radius: 50%; z-index: 2; } /* 缩略图导航按钮 */ .custom-thumb-btn { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(0, 0, 0, 0.5); color: white; border: none; width: 30px; height: 60px; cursor: pointer; z-index: 10; border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: 18px; } .custom-thumb-btn:hover { background-color: rgba(0, 0, 0, 0.8); } #custom-thumb-prev { left: 0; } #custom-thumb-next { right: 0; } .custom-thumb-btn.disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }
标签:
查看更多 >>

产品推荐