52AV手機A片王|52AV.ONE

標題: 手機版帖子內容圖片太小,改成大圖 [打印本頁]

作者: IT_man    時間: 2018-3-13 20:47
標題: 手機版帖子內容圖片太小,改成大圖
本帖最後由 IT_man 於 2018-3-14 00:29 編輯 2 k8 u+ ?; T; z; m

, i+ O3 B: W! Z$ e/ N! W$ q- T1. 修改/template/手機模板/touch/forum/discuzcode.htm
6 @& s7 I6 _* L5 p第114行:
  1. $mobilethumburl = $attach['attachimg'] && $_G['setting']['showimages'] && (!$attach['price'] || $attach['payed']) && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid']) ? getforumimg($attach['aid'], 0, 140, 140, 'fixnone') : '' ;
    $ b/ K( N5 Y: Q+ ^
複製代碼
6 P, B  w4 _5 l! l
0 r. D; E( p# u$ s6 o2 K: h
將 140, 140  改成   640, 550    (寬 > 高  才不會變形)
0 S! w' `! @: [0 s  ^
. E+ H' E, f0 i; u+ l7 b' v2 M) {9 F1 G) u4 N* L" r
2.修改 CSS
* }% d$ ~* v& p修改/template/手機模板/img/forum/vk_mobile_touch_plus.css8 [/ p' T. ^; P

! t" _; `3 u/ d5 j+ H  l
  1. .plc .message img,.plc .img_one img { margin:0px 4px 0px 0; max-width:140px; max-height:140px;}
複製代碼
改成0 z  Y# L6 z6 P; T' A! z8 y
  1. .plc .message img,.plc .img_one img { max-width:98%; display:block;vertical-align: middle;margin-bottom:4px; }
複製代碼
5 t- q; K+ s! y' `
然後更新模板緩存,就搞定 ! v, J. `2 p( E2 G8 W





歡迎光臨 52AV手機A片王|52AV.ONE (https://www.52av.one/) Powered by Discuz! X3.2