修复:豆瓣图裂问题

This commit is contained in:
xqw8889
2025-11-11 22:20:54 +08:00
parent 6fb7be9036
commit 7d02a08c2d
3 changed files with 62 additions and 16 deletions

View File

@@ -238,7 +238,10 @@ function formatImg($src, $enableImageResizer, $image_max_width, $image_max_heigh
if (empty($src)) {
return "";
}
return addTempCode("<img style=\"max-width: 100%\" id=\"$imgId\" alt=\"image\" src=\"$src\"" .($enableImageResizer ? " onload=\"Scale(this,$image_max_width,$image_max_height);\" onclick=\"Preview(this);\"" : "") . " />");
return addTempCode("<img style=\"max-width: 100%\" id=\"$imgId\" alt=\"image\" src=\"$src\"" .
($enableImageResizer ?
" onload=\"Scale(this, $image_max_width, $image_max_height);\" onclick=\"Preview(this);\" " : "") .
" onerror=\"handleImageError(this, '$src');\" />");
}
function formatFlash($src, $width, $height) {