Answers for "how can i set img tag thumbnail when there are no image in website"

2

css hide image if not found

<!-- hide image if not find -->
<img src="image.png" onerror="this.style.display='none'"/>

<!-- show image after load -->
<img src="image.png" style="display: none" onload="this.style.display=''">
Posted by: Guest on November-07-2020

Code answers related to "how can i set img tag thumbnail when there are no image in website"

Browse Popular Code Answers by Language