我想用 WebVTT 文件为视频添加标题,并注意到字符是自动勾勒出来的(所附图片中的黑线,如 html/CSS 的“文本笔划”),但我希望删除这些轮廓。我可以使用特定的 CSS 来实现这一点吗?请参考附件图片和我的 CSS 和 WebVTT 文件。提前感谢您的帮助。
video::cue {
font-size: 1.0em;
font-family: "Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Hiragino Sans",Meiryo,sans-serif;
font-weight: bold;
background-color: transparent;
background-image: transparent;
}
video::cue(c) {
font-family: '"Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Hiragino Sans",Meiryo,sans-serif;
font-weight: bold;
}
video::cue(:current) {
color: #FFFFFF;
}
video::cue(:past) {
color: #FFFFFF;
}
video::cue(:future) {
color: #c6c6c6;
opacity: 0.7;
}
<div class="caption">
<video controls="" playsinline="" src="https://www.voice.post-newsletter.org/wp-content/uploads/2021/04/0422.mp4" width="1000"><track kind="subtitles" srclang="en" default="English Subtitles" label="English Subtitles" src="https://www.voice.post-newsletter.org/wp-content/uploads/2021/04/0422_1.vtt"></video>
</div>