discuz手機(jī)版 圖片縮略圖大小設(shè)置/修改清晰度
/template/default/mobile/forum/discuzcode.htm和
/template/default/touch/forum/discuzcode.htm
找到discuzcode.htm文件,搜索“200”會(huì)有兩處代碼如下
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參數(shù)改大了之后你再在手機(jī)上看效果,縮略圖是不是變大了?
看看,是不是我的網(wǎng)站縮略圖還是原來那么大(200PX),但是清晰度怎么異常高呢?還有個(gè)小竅門,暫且讓我保留一會(huì)兒,呵呵~
找到 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; }