97久久国产亚洲精品超碰热,成人又色又爽的免费网站,色偷偷女人的天堂a,男女高潮喷水在线观看,国内精品一线二线三线区别在哪里

discuz手機(jī)版詳情頁,圖片自動(dòng)固定大小,怎么修改?

5280 2 2提示:支持鍵盤翻頁<-左 右-> chen-johnso 發(fā)表于 2019-7-11 19:41 帖子模式

本帖最后由 chen-johnso 于 2019-7-11 19:42 編輯 discuz手機(jī)版詳情頁,圖片自動(dòng)固定大小,怎么修改?默認(rèn)不能全屏,固定了尺寸,可是我在源碼里面,搜索不到這個(gè)數(shù)值。 ... 查看全文

    組圖打開中,請(qǐng)稍候......

評(píng)論2個(gè)評(píng)論

neol發(fā)表于  2019-7-13 10:03:11
建筑資源吧 發(fā)表于 2019-7-11 20:48
觸屏版圖片尺寸設(shè)置,打開\template\default\touch\forum\discuzcode.htm文件,找

改為

贊一個(gè)!
建筑資源吧發(fā)表于  2019-7-11 20:48:04
觸屏版圖片尺寸設(shè)置,打開\template\default\touch\forum\discuzcode.htm文件,找

  1. $fix = count($post[imagelist]) == 1 ? 140 : 83;
復(fù)制代碼
改為
  1. $fix = count($post[imagelist]) == 1 ? 650 : 800;
復(fù)制代碼
也就是把140的小圖改為寬650高800這樣,差不多是最大屏幕的手機(jī)的實(shí)際尺寸。這里建議電腦版的圖片上傳時(shí)就設(shè)置最大寬度不超過700,不然加載速度會(huì)很慢。然后再找
  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') : '' ;
復(fù)制代碼
改為
  1. $mobilethumburl = $attach['attachimg'] && $_G['setting']['showimages'] && (!$attach['price'] || $attach['payed']) && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid']) ? getforumimg($attach['aid'], 0, 650, 800, 'fixnone') : '' ;
復(fù)制代碼


CSS設(shè)置,打開\static\image\mobile\style.css,找

  1. .plc .pi .message img,.plc .pi .img_one img { margin:0px 4px 0px 0; max-width:140px; max-height:140px; }
復(fù)制代碼

改為

  1. .plc .pi .message img,.plc .pi .img_one img {max-width:98%; display:block;vertical-align: middle;margin-bottom:4px;}
復(fù)制代碼

CSS也限制了高和寬,改為按屏幕尺寸的百分比來顯示。為了不撐破,別搞100%了,98%就足夠了。

  • 關(guān)注公眾號(hào)
  • 有償服務(wù)微信
  • 有償服務(wù)QQ

手機(jī)版|小黑屋|Discuz! 官方交流社區(qū) ( 皖I(lǐng)CP備16010102號(hào) |皖公網(wǎng)安備34010302002376號(hào) )|網(wǎng)站地圖|star

GMT+8, 2025-10-17 01:50 , Processed in 0.050520 second(s), 16 queries , Redis On.

Powered by Discuz! X5.0 Licensed

© 2001-2025 Discuz! Team.

關(guān)燈 在本版發(fā)帖
有償服務(wù)QQ
有償服務(wù)微信
返回頂部
快速回復(fù) 返回頂部 返回列表