HTML5 fallback images are being loaded by the browser, even though HTML5 video is supported

后端 未结 3 2025
不思量自难忘°
不思量自难忘° 2021-01-18 07:39

I have some HTML5 videos with animated GIFs as fallback. Sadly, the GIFs are being loaded even though HTML5 video is supported.

Without using javascript, is

3条回答
  •  野的像风
    2021-01-18 08:16

    I assume you want a fallback for IE8 and earlier. Your solution is valid HTML, but I haven't seen anyone else recommend it. Other people use

    Your Message Here

    as a fallback instead of . Or maybe conditional comments would work. You could use except it wouldn't work for IE8 and earlier.

提交回复
热议问题