我有一个有空白的图像。在一些页面上,它可以正常工作。在其他情况下,它会切断空白的位置。有什么原因让它有时起作用,而不是其他原因?
同样的图像..。我在一页(不正确)上看到这个:
<img src="/assets/848b31ff/thumb_4307-0403141" large.jpg="">Yii::app()->assetManager->publish(Yii::app()->basePath.'/images/'.$data->product->product_image);= $thumb
在另一个(正确)上:
<img src="/assets/848b31ff/thumb_4307-0403141 large.jpg" class="thumb-product" border="0" alt="">if($img_path.$is_file-> $product_imaget ) && is_file($is_file_path.$is_file->$product_imaget){$product_imaget=is_file}
发布于 2014-05-20 06:02:11
您在src param上的第一个echo中缺少了引号。它应该是这样的:
<? echo '<a href="'.$url. '"><img src ="'.$thumb.'"><b>'.$prodname.'</b></a>';?>https://stackoverflow.com/questions/23348059
复制相似问题