本文实例讲述了DedeCMS图集中缩略图不显示的解决方法。分享给大家供大家参考。具体分析如下:
图集中缩略图不显示的原因在于,你上传的图片尺寸同时小于DEDE后台设置的默认缩略图尺寸.
其解决方法有二种:
其一:在后台把默认缩略图宽或高的一个尺寸调小,让你上传的图片二个尺寸中的一个大于,默认值.
其二:就是通过修改程序的方式来解决,本方法在DEDE5.7GBK版下测试通过,在文件include/image.func.php中找到
复制代码
代码如下:
<div class="msgborder" id="phpcode2" style="margin: 0px auto 3px; padding: 0px 3px; list-style: none; border-style: none solid solid; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-color: rgb(0, 153, 204); border-bottom-color: rgb(0, 153, 204); border-left-color: rgb(0, 153, 204); font-size: 14px; clear: both; overflow: hidden; word-break: break-all; word-wrap: break-word; color: rgb(68, 68, 68); font-family: Tahoma, Helvetica, Arial, 宋体, sans-serif; line-height: 25px; background-color: rgb(221, 237, 251);">if($srcW |