·设为首页收藏本站📧邮箱修改🎁免费下载专区📒收藏夹📱AI全功能
返回列表 发布新帖

3。5手机模板发帖上传图片样式换行了,你们有这种情况吗

[复制链接]
656 7

马上注册,免费下载更多dz插件网资源。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
3。5手机模板发帖上传图片样式换行了,你们有这种情况吗 手机,模板,发帖,上传,图片

如图上,
我去看了官方的没问题
我没修改过代码,我也复盖这个文件也是一样template/default/touch/forum/post.htm

这是代码
<!--{template common/header}-->
<!--{eval $adveditor = $isfirstpost && $special || $special == 2 && ($_GET['action'] == 'newthread' || $_GET['action'] == 'reply' && !empty($_GET['addtrade']) || $_GET['action'] == 'edit' && $thread['special'] == 2);}-->
<form method="post" id="postform"
                        {if $_GET['action'] == 'newthread'}action="forum.php?mod=post&action={if $special != 2}newthread{else}newtrade{/if}&fid=$_G['fid']&extra=$extra&topicsubmit=yes&mobile=2"
                        {elseif $_GET['action'] == 'reply'}action="forum.php?mod=post&action=reply&fid=$_G['fid']&tid=$_G['tid']&extra=$extra&replysubmit=yes&mobile=2"
                        {elseif $_GET['action'] == 'edit'}action="forum.php?mod=post&action=edit&extra=$extra&editsubmit=yes&mobile=2" $enctype
                        {/if}>
        <input type="hidden" name="formhash" id="formhash" value="{FORMHASH}" />
        <input type="hidden" name="posttime" id="posttime" value="{TIMESTAMP}" />
<!--{if !empty($_GET['modthreadkey'])}--><input type="hidden" name="modthreadkey" id="modthreadkey" value="$_GET['modthreadkey']" /><!--{/if}-->
<!--{if $_GET['action'] == 'reply'}-->
        <input type="hidden" name="noticeauthor" value="$noticeauthor" />
        <input type="hidden" name="noticetrimstr" value="$noticetrimstr" />
        <input type="hidden" name="noticeauthormsg" value="$noticeauthormsg" />
        <!--{if $reppid}-->
                <input type="hidden" name="reppid" value="$reppid" />
        <!--{/if}-->
        <!--{if $_GET['reppost']}-->
                <input type="hidden" name="reppost" value="$_GET['reppost']" />
        <!--{elseif $_GET['repquote']}-->
                <input type="hidden" name="reppost" value="$_GET['repquote']" />
        <!--{/if}-->
<!--{/if}-->
<!--{if $_GET['action'] == 'edit'}-->
        <input type="hidden" name="fid" id="fid" value="$_G['fid']" />
        <input type="hidden" name="tid" value="$_G['tid']" />
        <input type="hidden" name="pid" value="$pid" />
        <input type="hidden" name="page" value="$_GET['page']" />
<!--{/if}-->
<!--{if $special}-->
        <input type="hidden" name="special" value="$special" />
<!--{/if}-->
<!--{if $specialextra}-->
        <input type="hidden" name="specialextra" value="$specialextra" />
<!--{/if}-->
<div class="header cl">
        <div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
        <h2><!--{if $_GET['action'] == 'edit'}-->{lang edit}<!--{else}-->{lang send_threads}<!--{/if}--></h2>
        <div class="my"></div>
</div>
<!--{if $_GET['action'] == 'newthread' && ($_G['group']['allowpostpoll'] || $_G['group']['allowpostreward'] || $_G['group']['allowpostdebate'] || $_G['group']['allowpostactivity'] || $_G['group']['allowposttrade'] || $_G['setting']['threadplugins'] || $_G['forum']['threadsorts']['types'])}-->
<div class="dhnavs_box">
        <div id="dhnavs">
                <div id="dhnavs_li">
                        <ul class="swiper-wrapper">
                                <!--{if empty($_G['forum']['threadsorts']['required']) && !$_G['forum']['allowspecialonly']}-->
                                <li class="swiper-slide {if $postspecialcheck[0]}mon{/if}"><a href="forum.php?mod=post&action=newthread&fid=$_G['fid']&cedit=yes<!--{if !empty($_G['tid'])}-->&tid=$_G['tid']<!--{/if}--><!--{if !empty($modelid)}-->&modelid=$modelid<!--{/if}-->&extra=$extra">{lang post_newthread}</a></li>
                                <!--{/if}-->
                                <!--{loop $_G['forum']['threadsorts']['types'] $tsortid $name}-->
                                        <li class="swiper-slide {if $sortid == $tsortid}mon{/if}"><a href="forum.php?mod=post&action=newthread&sortid=$tsortid&fid=$_G['fid']&cedit=yes<!--{if !empty($_G['tid'])}-->&tid=$_G['tid']<!--{/if}--><!--{if !empty($modelid)}-->&modelid=$modelid<!--{/if}-->&extra=$extra"><!--{echo strip_tags($name);}--></a></li>
                                <!--{/loop}-->
                                <!--{if $_G['group']['allowpostpoll']}--><li class="swiper-slide {if $_GET['special'] == 1}mon{/if}"><a href="forum.php?mod=post&action=newthread&special=1&fid=$_G['fid']&cedit=yes<!--{if !empty($_G['tid'])}-->&tid=$_G['tid']<!--{/if}--><!--{if !empty($modelid)}-->&modelid=$modelid<!--{/if}-->&extra=$extra">{lang post_newthreadpoll}</a></li><!--{/if}-->
                                <!--{if $_G['group']['allowpostreward']}--><li class="swiper-slide {if $_GET['special'] == 3}mon{/if}"><a href="forum.php?mod=post&action=newthread&special=3&fid=$_G['fid']&cedit=yes<!--{if !empty($_G['tid'])}-->&tid=$_G['tid']<!--{/if}--><!--{if !empty($modelid)}-->&modelid=$modelid<!--{/if}-->&extra=$extra">{lang post_newthreadreward}</a></li><!--{/if}-->
                                <!--{if $_G['group']['allowpostdebate']}--><li class="swiper-slide {if $_GET['special'] == 5}mon{/if}"><a href="forum.php?mod=post&action=newthread&special=5&fid=$_G['fid']&cedit=yes<!--{if !empty($_G['tid'])}-->&tid=$_G['tid']<!--{/if}--><!--{if !empty($modelid)}-->&modelid=$modelid<!--{/if}-->&extra=$extra">{lang post_newthreaddebate}</a></li><!--{/if}-->
                                <!--{if $_G['group']['allowpostactivity']}--><li class="swiper-slide {if $_GET['special'] == 4}mon{/if}"><a href="forum.php?mod=post&action=newthread&special=4&fid=$_G['fid']&cedit=yes<!--{if !empty($_G['tid'])}-->&tid=$_G['tid']<!--{/if}--><!--{if !empty($modelid)}-->&modelid=$modelid<!--{/if}-->&extra=$extra">{lang post_newthreadactivity}</a></li><!--{/if}-->
                                <!--{if $_G['group']['allowposttrade']}--><li class="swiper-slide {if $_GET['special'] == 2}mon{/if}"><a href="forum.php?mod=post&action=newthread&special=2&fid=$_G['fid']&cedit=yes<!--{if !empty($_G['tid'])}-->&tid=$_G['tid']<!--{/if}--><!--{if !empty($modelid)}-->&modelid=$modelid<!--{/if}-->&extra=$extra">{lang post_newthreadtrade}</a></li><!--{/if}-->
                                <!--{if $_G['setting']['threadplugins']}-->
                                        <!--{loop $_G['forum']['threadplugin'] $tpid}-->
                                                <!--{if array_key_exists($tpid, $_G['setting']['threadplugins']) && is_array($_G['group']['allowthreadplugin']) && in_array($tpid, $_G['group']['allowthreadplugin'])}-->
                                                        <li class="swiper-slide {if $specialextra==$tpid}mon{/if}"><a href="forum.php?mod=post&action=newthread&specialextra=$tpid&fid=$_G['fid']&cedit=yes<!--{if !empty($_G['tid'])}-->&tid=$_G['tid']<!--{/if}--><!--{if !empty($modelid)}-->&modelid=$modelid<!--{/if}-->&extra=$extra">{$_G['setting']['threadplugins'][$tpid]['name']}</a></li>
                                                <!--{/if}-->
                                        <!--{/loop}-->
                                <!--{/if}-->
                        </ul>
                </div>
        </div>
</div>

<!--{/if}-->
<div class="post_from post_box">
        <!--{hook/post_top_mobile}-->
        <ul class="cl">
                <!--{if $_GET['action'] == 'reply' && !empty($_GET['addtrade']) || $_GET['action'] == 'edit' && $thread['special'] == 2 && !$postinfo['first']}-->
                <input name="subject" type="hidden" value="" />
                <!--{elseif $_GET['action'] != 'reply'}-->
                <li class="mli"><input type="text" class="px pl5" id="needsubject" autocomplete="off" value="$postinfo['subject']" name="subject" placeholder="{lang posts}{lang thread_subject}"></li>
                <!--{else}-->
                <li class="mtext">
                        RE: $thread['subject']
                        <!--{if $quotemessage}-->$quotemessage<!--{/if}-->
                </li>
                <!--{/if}-->
                <!--{if $isfirstpost && !empty($_G['forum']['threadtypes']['types'])}-->
                <li class="mli">
                        <select id="typeid" name="typeid" class="sort_sel pl5">        
                                <i class="dm-c-down sort_jt"></i>
                                <option value="0" selected="selected">{lang threadtype}</option>
                                <!--{loop $_G['forum']['threadtypes']['types'] $typeid $name}-->
                                <!--{if empty($_G['forum']['threadtypes']['moderators'][$typeid]) || $_G['forum']['ismoderator']}-->
                                <option value="$typeid"{if $thread['typeid'] == $typeid || $_GET['typeid'] == $typeid} selected="selected"{/if}><!--{echo strip_tags($name);}--></option>
                                <!--{/if}-->
                                <!--{/loop}-->
                        </select>
                </li>
                <!--{/if}-->
        </ul>
        <!--{template forum/post_editor_extra}-->
        <ul class="cl">
                <li class="mtext">
                        <textarea class="pt" id="needmessage" autocomplete="off" id="{$editorid}_textarea" name="$editor['textarea']" placeholder="<!--{if $_GET['action'] != 'reply'}-->{lang posts}<!--{/if}-->{lang thread_content}" fwin="reply">$postinfo['message']</textarea>
                        <div class="mimg cl">
                                <a href="javascript:;" class="post_imgbtn"><i class="dm-image"></i>{lang e_img_attach}<input type="file" name="Filedata" id="filedata" multiple="multiple" accept=".jpg,.jpeg,.gif,.png,.bmp,image/jpeg,image/gif,image/png,image/bmp" /></a>
                                <a href="javascript:;" class="post_attbtn"><i class="dm-star-fill"></i>{lang upload_attach}<input type="file" name="Filedata" id="attfiledata" /></a>
                        </div>
                        <div class="cl">
                                <ul id="imglist" class="post_imglist cl">
                                <!--{loop $imgattachs['used'] $temp}-->
                                        <li><span aid="$temp['aid']" class="del" up="1"><a href="javascript:;"><i class="dm-error"></i></a></span><span class="p_img"><a href="javascript:;"><img style="height:54px;width:54px;" id="aimg_$temp['aid']" src="{$temp['url']}/$temp['attachment']" /></a></span><input type="hidden" name="attachnew[{$temp['aid']}]['description']" /></li>
                                <!--{/loop}-->
                                </ul>
                        </div>
                        <div class="cl">
                                <ul id="attlist" class="post_attlist setbox cl">
                                <!--{loop $attachs['used'] $temp}-->
                                        <li class="b_t"><div class="tit"><span aid="{$temp['aid']}" up="1" class="del btn f_f"><a href="javascript:;"><i class="dm-trash z"></i></a></span>
                                        <!--{if $_G['setting']['allowattachurl']}-->
                                        <!--{if $temp['ext'] == 'mp3'}-->
                                                <span class="btn">{lang forum_post_insert}{lang e_audio}</span>
                                        <!--{elseif $temp['ext'] == 'mp4'}-->
                                                <span class="btn">{lang forum_post_insert}{lang e_video}</span>
                                        <!--{/if}-->
                                        <!--{/if}-->
                                        <span class="btn">{lang forum_post_insert}</span>{$temp['filetype']}<span class="link">{$temp['filename']}</span></div><div class="minput"><div class="attms flex-box"><span class="f_c">{lang description}</span><input type="text" name="attachnew[{$temp['aid']}][description]" value="{$temp['description']}" class="input flex"></div></div><div class="minput">
                                        <!--{if $_G['group']['allowsetattachperm']}-->
                                        <!--{if $_G['cache']['groupreadaccess']}-->
                                        <div class="attqx flex-box"><span>{lang forum_post_perm}</span>
                                                <div class="flex">
                                                        <select name="attachnew[{$temp['aid']}][readperm]" id="readperm{$temp['aid']}" class="sort_sel">
                                                                <option value="" selected="selected">{lang unlimited}</option>
                                                                <!--{loop $_G['cache']['groupreadaccess'] $val}-->
                                                                <option value="$val['readaccess']"{if $temp['readperm'] == $val['readaccess']} selected="selected"{/if}>$val['grouptitle']</option>
                                                                <!--{/loop}-->
                                                                <option value="255"{if $temp['readperm'] == 255} selected{/if}>{lang highest_right}</option>
                                                        </select>
                                                </div>
                                        </div>
                                        <!--{/if}-->
                                        <!--{/if}-->
                                        <!--{if $_G['group']['maxprice']}--><div class="attjg flex-box"><span>{lang price}</span><input type="text" name="attachnew[{$temp['aid']}][price]" value="{$temp['price']}" class="input price flex"><em>{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]}</em></div><!--{/if}--></div></li>
                                                <!--{/loop}-->
                                </ul>
                        </div>
                </li>
                <!--{if $_GET['action'] == 'edit' && $isorigauthor && ($isfirstpost && $thread['replies'] < 1 || !$isfirstpost) && !$rushreply && $_G['setting']['editperdel']}-->
                <label>
                <li class="flex-box mli">
                        <div class="flex-3 xg1"><span class="z">{lang post_delpost}</span></div>
                        <div class="flex"><span class="y"><input type="checkbox" name="delete" id="delete" class="pc" value="1"></span></div>
                </li>
                </label>
                <!--{/if}-->
                <!--{hook/post_middle_mobile}-->
                <!--{subtemplate forum/post_editor_attribute}-->
        </ul>
        <!--{if $_GET['action'] != 'edit' && ($secqaacheck || $seccodecheck)}-->
        <ul class="cl">
                <!--{subtemplate common/seccheck}-->
        </ul>
        <!--{/if}-->
        <!--{hook/post_bottom_mobile}-->
</div>
<div class="post_btn">
        <button id="postsubmit" class="btn_pn <!--{if $_GET['action'] == 'edit'}-->btn_pn_blue" disable="false"<!--{else}-->btn_pn_grey" disable="true"<!--{/if}-->>
        <!--{if $_GET['action'] == 'newthread'}-->
                <!--{if $special == 0}-->{lang send_thread}
                <!--{elseif $special == 1}-->{lang post_newthreadpoll}
                <!--{elseif $special == 2}-->{lang post_newthreadtrade}
                <!--{elseif $special == 3}-->{lang post_newthreadreward}
                <!--{elseif $special == 4}-->{lang post_newthreadactivity}
                <!--{elseif $special == 5}-->{lang post_newthreaddebate}
                <!--{elseif $special == 127}-->
                        <!--{if $buttontext}-->$buttontext<!--{else}-->{lang post_newthread}<!--{/if}-->
                <!--{/if}-->
        <!--{elseif $_GET['action'] == 'reply' && !empty($_GET['addtrade'])}-->{lang trade_add_post}
        <!--{elseif $_GET['action'] == 'reply'}-->{lang join_thread}
        <!--{elseif $_GET['action'] == 'edit' && $isfirstpost && $thread['displayorder'] == -4}-->{lang post_newthread}
        <!--{elseif $_GET['action'] == 'edit'}-->{lang edit_save}
        <!--{/if}-->
        </button>
</div>
<!--{hook/post_btn_extra_mobile}-->
<input type="hidden" name="{if $_GET['action'] == 'newthread'}topicsubmit{elseif $_GET['action'] == 'reply'}replysubmit{elseif $_GET['action'] == 'edit'}editsubmit{/if}" value="yes">
</form>

<!--{eval $nofooter = true;}-->
<!--{template common/footer}-->

1 贡献

        看了下默认模板,这里是完全正常的,最大可能是有某个地方的样式表影响到了此处默认的样式。比如插件,或者自己修改过的什么地方。

    3。5手机模板发帖上传图片样式换行了,你们有这种情况吗 手机,模板,发帖,上传,图片 mingkong发表于1 小时前

我要说一句 收起回复

评论7

独家记忆Lv.8 发表于 2023-11-7 21:51:09 | 查看全部
但是是这个代码
                        <div class="mimg cl">
                                <a href="javascript:;" class="post_imgbtn"><i class="dm-image"></i>{lang e_img_attach}<input type="file" name="Filedata" id="filedata" multiple="multiple" accept=".jpg,.jpeg,.gif,.png,.bmp,image/jpeg,image/gif,image/png,image/bmp" /></a>
                                <a href="javascript:;" class="post_attbtn"><i class="dm-star-fill"></i>{lang upload_attach}<input type="file" name="Filedata" id="attfiledata" /></a>
我要说一句 收起回复
浅生Lv.8 发表于 2023-11-7 21:51:49 | 查看全部
看了下默认模板,这里是完全正常的,最大可能是有某个地方的样式表影响到了此处默认的样式。比如插件,或者自己修改过的什么地方。
我要说一句 收起回复
独家记忆Lv.8 发表于 2023-11-7 21:52:46 | 查看全部
我也看了默认模板是正常的,没修改过,插件都关了测试过,还是一样
我要说一句 收起回复
婷姐Lv.8 发表于 2023-11-7 21:53:34 | 查看全部
我网站的也没问题,RT
3。5手机模板发帖上传图片样式换行了,你们有这种情况吗 手机,模板,发帖,上传,图片

可能你复制代码覆盖的的过程出问题,建议还是用二进制上传覆盖比较妥当。
我要说一句 收起回复
IT618发布Lv.8 发表于 2023-11-7 21:54:01 | 查看全部
不知道呀
我要说一句 收起回复
独家记忆Lv.8 发表于 2023-11-7 21:54:57 | 查看全部
你需要把网址发出来,然后有个测试账号,才可能有人能判断的出来。这样猜图要想解决问题有点难。
我要说一句 收起回复
IT618发布Lv.8 发表于 2023-11-7 21:55:15 | 查看全部
知道原因了,平安超级上传问题,换域名一起没更新
我要说一句 收起回复

回复

 懒得打字嘛,点击右侧快捷回复【查看最新发布】   【应用商城享更多资源】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐上一条 /1 下一条

最新热评 加载中...
AI智能体
投诉/建议联系

discuzaddons@vip.qq.com

未经授权禁止转载,复制和建立镜像,
如有违反,按照公告处理!!!
  • 联系QQ客服
  • 添加微信客服

联系DZ插件网微信客服|最近更新|Archiver|手机版|小黑屋|DZ插件网! ( 鄂ICP备20010621号-1 ) 知道创宇云防御

您的IP:216.73.216.247(美国),GMT+8, 2026-10-30 10:03 , Processed in 0.861496 second(s), 64 queries , Gzip On, Redis On.

Powered by Discuz! X5.1 Licensed

© 2001-2026 Discuz! Team.

关灯 在本版发帖
扫一扫添加微信客服
QQ客服返回顶部
快速回复 返回顶部 返回列表