<i id='L6BNE'><tr id='L6BNE'><dt id='L6BNE'><q id='L6BNE'><span id='L6BNE'><b id='L6BNE'><form id='L6BNE'><ins id='L6BNE'></ins><ul id='L6BNE'></ul><sub id='L6BNE'></sub></form><legend id='L6BNE'></legend><bdo id='L6BNE'><pre id='L6BNE'><center id='L6BNE'></center></pre></bdo></b><th id='L6BNE'></th></span></q></dt></tr></i><div id='L6BNE'><tfoot id='L6BNE'></tfoot><dl id='L6BNE'><fieldset id='L6BNE'></fieldset></dl></div>
  • <tfoot id='L6BNE'></tfoot>

    <small id='L6BNE'></small><noframes id='L6BNE'>

    1. <legend id='L6BNE'><style id='L6BNE'><dir id='L6BNE'><q id='L6BNE'></q></dir></style></legend>

      • <bdo id='L6BNE'></bdo><ul id='L6BNE'></ul>

        如果浏览器不支持 HTML5 的&lt;video&gt;,我如何显示图像?标签

        How can I display an image if browser does not support HTML5#39;s lt;videogt; tag(如果浏览器不支持 HTML5 的lt;videogt;,我如何显示图像?标签)
          <tfoot id='1FkeK'></tfoot>
            <bdo id='1FkeK'></bdo><ul id='1FkeK'></ul>
            1. <i id='1FkeK'><tr id='1FkeK'><dt id='1FkeK'><q id='1FkeK'><span id='1FkeK'><b id='1FkeK'><form id='1FkeK'><ins id='1FkeK'></ins><ul id='1FkeK'></ul><sub id='1FkeK'></sub></form><legend id='1FkeK'></legend><bdo id='1FkeK'><pre id='1FkeK'><center id='1FkeK'></center></pre></bdo></b><th id='1FkeK'></th></span></q></dt></tr></i><div id='1FkeK'><tfoot id='1FkeK'></tfoot><dl id='1FkeK'><fieldset id='1FkeK'></fieldset></dl></div>

                  <tbody id='1FkeK'></tbody>

                <legend id='1FkeK'><style id='1FkeK'><dir id='1FkeK'><q id='1FkeK'></q></dir></style></legend>

                  <small id='1FkeK'></small><noframes id='1FkeK'>

                  本文介绍了如果浏览器不支持 HTML5 的&lt;video&gt;,我如何显示图像?标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  有谁知道如何为不支持该标签的浏览器显示图像?显示文本,例如:

                  Does anyone know how can I display an image for the browsers which don't support the tag ? Displaying a text such as in:

                  <video src="video.mp4" type="video/mp4">
                      Your browser does not support the <video> tag
                  </video>
                  

                  很简单,但是如果我用 img 标签替换文本,它会始终显示图像,即使浏览器确实支持 video 标签.

                  Is easy, but if I replace the text with an img tag, it will always show the image, even when the browser DOES support the video tag.

                  感谢分享您的知识

                  (编辑)事实并非如此,我的测试是错误的,并且 img 标签确实只有在不支持视频时才会呈现(例如 Safari 5)

                  (EDIT) This is not the case, my tests were wrong and img tag indeed gets rendered only when video is not supported (e.g. Safari 5)

                  推荐答案

                  我只是在查看这个链接,以及HTML5 的规范,所以这段代码应该适合你:

                  I was just checking this link, as well as HTML5's spec, so this code should work for you:

                  <video controls="controls" poster="<your image poster if applicable>">
                      <source src="video.mp4" type="video/mp4" />
                      <img src="<your No video support image>" title="Your browser does not support the <video> tag" />
                  </video>
                  

                  这篇关于如果浏览器不支持 HTML5 的&lt;video&gt;,我如何显示图像?标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  quot;Status Code:200 OK (from ServiceWorker)quot; in Chrome Network DevTools?(“状态码:200 OK(来自 ServiceWorker)在 Chrome 网络开发工具中?)
                  What is quot;X-Content-Type-Options=nosniffquot;?(什么是“X-Content-Type-Options=nosniff?)
                  SmtpJs API not working! is there any way to send emails using SMTP server with JavaScript or JQuery(SmtpJs API 不工作!有没有办法使用带有 JavaScript 或 JQuery 的 SMTP 服务器发送电子邮件)
                  Can I send email using javascript(我可以使用 javascript 发送电子邮件吗)
                  Select All the objects on canvas using Fabric.js(使用 Fabric.js 选择画布上的所有对象)
                  Crop the image using JavaScript(使用 JavaScript 裁剪图像)

                      <legend id='tYDa3'><style id='tYDa3'><dir id='tYDa3'><q id='tYDa3'></q></dir></style></legend>

                      <small id='tYDa3'></small><noframes id='tYDa3'>

                        <tbody id='tYDa3'></tbody>

                          <tfoot id='tYDa3'></tfoot>

                            <bdo id='tYDa3'></bdo><ul id='tYDa3'></ul>
                          • <i id='tYDa3'><tr id='tYDa3'><dt id='tYDa3'><q id='tYDa3'><span id='tYDa3'><b id='tYDa3'><form id='tYDa3'><ins id='tYDa3'></ins><ul id='tYDa3'></ul><sub id='tYDa3'></sub></form><legend id='tYDa3'></legend><bdo id='tYDa3'><pre id='tYDa3'><center id='tYDa3'></center></pre></bdo></b><th id='tYDa3'></th></span></q></dt></tr></i><div id='tYDa3'><tfoot id='tYDa3'></tfoot><dl id='tYDa3'><fieldset id='tYDa3'></fieldset></dl></div>