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

后端 未结 22 2531
渐次进展
渐次进展 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:26

    Simple and neat solution involving some good answers and comment.

    
    

    It even solve infinite loop risk.

    Worked for me.

提交回复
热议问题