Showing
1 changed file
with
3 additions
and
0 deletions
@@ -128,6 +128,9 @@ | @@ -128,6 +128,9 @@ | ||
128 | if(width >240){ | 128 | if(width >240){ |
129 | w =240; | 129 | w =240; |
130 | } | 130 | } |
131 | + if(width ==1 || height == 1){ | ||
132 | + w =240; | ||
133 | + } | ||
131 | var h = w * height/width; | 134 | var h = w * height/width; |
132 | imgHtml = '<img src="'+detailInfo.coverImg+'" style="width:'+w+'px;height:'+h+'px;"/>'; | 135 | imgHtml = '<img src="'+detailInfo.coverImg+'" style="width:'+w+'px;height:'+h+'px;"/>'; |
133 | $("#coverImg").html(imgHtml); | 136 | $("#coverImg").html(imgHtml); |
-
Please register or login to post a comment