tid=77024& 本帖最後由 IT_man 於 2018-3-14 00:29 編輯 . u) }8 l) f1 x5 O1 T. O4 `* i& r
# N9 s# I# c* C5 w1 J5 ^* P
1. 修改/template/手機模板/touch/forum/discuzcode.htm
4 L6 @: s/ J$ T- b; 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') : '' ;+ `/ s* v0 @- G, u: P
複製代碼
2 t4 i5 S" X0 `3 |$ s* _+ k+ v; C3 S: N* f7 [& Q
將 140, 140 改成 640, 550 (寬 > 高 才不會變形)9 K7 d' R X: v1 Z* w4 R1 {( P7 L
6 h8 W/ z: @( D' \$ b
; E5 F/ B9 c. i9 J9 |0 L. C" @
2.修改 CSS
/ S" l/ C, }1 Y, ~1 V7 w( Y修改/template/手機模板/img/forum/vk_mobile_touch_plus.css) ~/ a2 L3 M, B% G3 h% J. v# s
找+ d4 n. O) G$ d$ c5 k) n7 Y
- .plc .message img,.plc .img_one img { margin:0px 4px 0px 0; max-width:140px; max-height:140px;}
複製代碼 改成
4 ?) t! N: G" [9 |- .plc .message img,.plc .img_one img { max-width:98%; display:block;vertical-align: middle;margin-bottom:4px; }
複製代碼
, |1 h5 \8 R! X0 L V) q$ _3 H& t然後更新模板緩存,就搞定 . X# V4 e6 e1 f: x
|