img的onerro写法设置Img的默认占位图片

Published
2022-12-31
浏览次数 :  13

<img src="<?php the_post_thumbnail_url('list_2_thumb') ?>" onerror="this.src='<?php echo ha_get_option('default_thumb')['url'] ?>'">


  • 标签1
  • 标签1
  • 标签1
Top