52AV手機A片王|52AV.ONE
標題:
手機版帖子內容圖片太小,改成大圖
[打印本頁]
作者:
IT_man
時間:
2018-3-13 20:47
標題:
手機版帖子內容圖片太小,改成大圖
本帖最後由 IT_man 於 2018-3-14 00:29 編輯
( I7 {0 W& d v& W
" l9 J: D8 u5 U
1. 修改/template/手機模板/touch/forum/discuzcode.htm
9 m! { w# Q( G% z
第114行:
$mobilethumburl = $attach['attachimg'] && $_G['setting']['showimages'] && (!$attach['price'] || $attach['payed']) && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid']) ? getforumimg($attach['aid'], 0, 140, 140, 'fixnone') : '' ;
5 \! ~% D8 s/ X
複製代碼
& ]) C4 ]% g# I6 {
2 P; V6 S1 X6 o( n7 r
將 140, 140 改成 640, 550 (寬 > 高 才不會變形)
" O4 M- V* m: C& e
; Z6 y) V; ?+ S
4 W7 f& `) E6 ~4 A v
2.修改 CSS
% y, B1 J; F+ |) e
修改/template/手機模板/img/forum/vk_mobile_touch_plus.css
. X4 [0 q! z. L. l+ M
找
$ d. R! B, I( D
.plc .message img,.plc .img_one img { margin:0px 4px 0px 0; max-width:140px; max-height:140px;}
複製代碼
改成
; ?. {! s0 N( b
.plc .message img,.plc .img_one img { max-width:98%; display:block;vertical-align: middle;margin-bottom:4px; }
複製代碼
* J' x& Q4 p ^# W9 ]
然後更新模板緩存,就搞定
) K8 h" k7 d" K
歡迎光臨 52AV手機A片王|52AV.ONE (https://www.itech.casa/)
Powered by Discuz! X3.2