Inputting a default image in case the src attribute of an html

后端 未结 22 2530
渐次进展
渐次进展 2020-11-22 16:02

Is there any way to render a default image in an HTML tag, in case the src attribute is invalid (using only HTML)? If not, what would

22条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-22 16:12

    Google threw out this page to the "image fallback html" keywords, but because non of the above helped me, and I was looking for a "svg fallback support for IE below 9", I kept on searching and this is what I found:

    picture
    
    

    It might be off-topic, but it resolved my own issue and it might help someone else too.

提交回复
热议问题