<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;,我如何显示图像?标签

        时间:2023-07-31
          <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;,我如何显示图像?标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:从电子邮件的字符串正文中删除格式标记 下一篇:为什么基本标签不适用于相对路径?

                  相关文章

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

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

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

                        <bdo id='tYDa3'></bdo><ul id='tYDa3'></ul>
                    1. <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>