discuz手机版图片缩略图大小设置/修改清晰度

2021-08-30 0 461

教程开始:

  • \template\default\mobile\forum\discuzcode.htm 和
  • \template\default\touch\forum\discuzcode.htm
  • 找到 discuzcode.htm 文件,搜索“200”会有两处代码如下
  • function imagelist($attach) { global $_G;
  • $attach[‘refcheck’] = (!$attach[‘remote’] && $_G[‘setting’][‘attachrefcheck’]) || ($attach[‘remote’] && ($_G[‘setting’][‘ftp’][‘hideurl’] || ($attach[‘isimage’] &&$_G[‘setting’][‘attachimgpost’] && strtolower(substr($_G[‘setting’][‘ftp’][‘attachurl’], 0, 3)) == ‘ftp’)));
  • $mobilethumburl = $attach[‘attachimg’] && $_G[‘setting’][‘showimages’] && (!$attach[‘price’] || $attach[‘payed’]) && ($_G[‘group’][‘allowgetimage’] ||$_G[‘uid’] == $attach[‘uid’]) ? getforumimg($attach[‘aid’], 0, 200, 200, ‘fixnone’) : ” ;
  • $aidencode = packaids($attach); $is_archive = $_G[‘forum_thread’][‘is_archived’] ?”&fid=”.$_G[‘fid’].”&archiveid=”.$_G[forum_thread][archiveid] : ”; }
  • size 参数改大了之后你再在手机上看效果,缩略图是不是变大了?
  • 看看,是不是我的网站缩略图还是原来那么大(200PX),但是清晰度怎么异常高呢?还有个小窍门,暂且让我保留一会儿,呵呵~
  • 找到 static/image/mobile/style.css
  • 修改这段样式中的红色字体
  • .plc .pi .message img,.plc .pi .img_one img { margin:0px 4px 0px 0; max-width:300px; max-height:300px; }

本文章已结束,如转载请注明:汇站网 » discuz 手机版图片缩略图大小设置/修改清晰度

收藏 (0)

微信支付 微信扫一扫

支付宝支付 支付宝扫一扫

打赏二维码
点赞 (0)

站长资源下载中心-找源码上汇站

常见问题
  • 如果付款后没有弹出下载页面,多刷新几下,有问题联系客服!
查看详情
  • 本站所有资源版权均属于原作者所有,这里所提供资源均只能用于参考学习用,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担。
查看详情

相关文章

联系官方客服

为您解决烦忧 - 24小时在线 专业服务