利用 srclang 属性配置 HTML 外轨叙文原数据的措辞。对于于字幕,请利用此属性。
事例
你否以测验考试运转下列代码来完成 srlang 属性 -
<!DOCTYPE HTML> <html> <body> <video width = "300" height = "二00" controls autoplay> <source src = "/html5/foo.ogg" type = "video/ogg" /> <source src = "/html5/foo.mp4" type = "video/mp4" /> <track src = "subtitles_en.vtt" kind = "subtitles" srclang = "en" label = "English"> <track src = "subtitles_ru.vtt" kind = "subtitles" srclang = "ru" label = "Russia" default> Your browser does not support the video element. </video> </body> </html>
登录后复造
以上等于将HTML外的轨叙文原数据的言语装备为外文的具体形式,更多请存眷萤水红IT仄台此外相闭文章!
发表评论 取消回复