|
B站视频嵌入.video-container { display: flex; justify-content: center; width: 99%; margin: 0 auto; padding: 10px; box-sizing: border-box; } .video-wrapper { position: relative; width: 99%; max-width: 800px; overflow: hidden; } .video-wrapper::before { content: ""; display: block; padding-top: 56.25%; /* 16:9 宽高比 */ } iframe { position: absolute; top: 0; left: 0; width: 99%; height: 99%; border: none; } |