业务经理

微信扫描以上二维码

028-61286886

技术咨询

首页和栏目也调用数据显示效果不同【转发】

开源系统 更新 2017-08-29 14:32:44 xiemin

文章标题用到了特殊符号,首页显示正常,但是栏目也显示出现问题,如图


这是首页显示的样式,这是正常的


这是栏目页同一篇文章所显示的样式,出现问题了

请问该如何解决


方案

  • 小虎 #1 · 2017-08-27 17:00:09
    你两个地方标签分别是怎么写的
  • 疾风 #2 · 2017-08-27 17:02:05
    首页是这样的
    <div class="fxkh_index_tymk_l ml10" style="width:495px">
    
       <div class="fxkh_index_tymk_l_title">
    
        <i class="fa fa-newspaper-o ml5 mr5"></i> 
    
        <span class="title mr5">专题报道</span> 
    
        <span class="title2">Zhuanti Baodao</span>
    
        <span class="fr fs12 mt5 mr5"><a href="index.php?c=category&id=7">更多 <i class="fa fa-chevron-right fs12"></i></a></span>
    
       </div>
    
       <div class="fxkh_index_tymk_l_content">
    
        <div class="fxkh_index_tymk_list w100p">
    
         {list action=module module=news order=updatetime num=8 catid=7}
    
         <div>
    
          <span class="fl title">
    
           <i class="fa fa-square fs12"></i> <a href="{$t.url}" target="_blank">{dr_strcut($t.title, 40)}</a>
    
          </span>
    
          <span class="fr time">
    
           {dr_date($t._updatetime,'[y-m-d]','red')}
    
          </span>
    
         </div>
    
         {/list}
    
        </div>
    
       </div>
    
      </div>
    栏目页是这样的
    <div class="fxkh_index_tymk_r w100p mt10">
    
       <div class="fxkh_index_tymk_r_title">
    
        <span class="title">
    
         <i class="fa fa-fire ml5 mr5"></i> 
    
         <span class="mr5">热门阅读</span> 
    
        </span>
    
        <span class="title2">Remen Yuedu</span>
    
       </div>
    
       <div class="fxkh_index_tymk_l_content">
    
        <div class="fxkh_index_tymk_list w100p mt10" style="height:auto">
    
         <!--我们按点击排序-->
    
         {list action=module catid=$catid field=title,url,hits order=hits num=12}
    
         <div>
    
          <span class="fl title">
    
           <i class="fa fa-square fs12"></i> <a href="{$t.url}" target="_blank">{dr_strcut($t.title,28)}</a>
    
          </span>
    
          <span class="fr mt5 badge {$a[array_rand($a)]}">
    
           {if !$t.hits}0{else}{$t.hits}{/if}
    
          </span>
    
         </div>
    
         {/list}
    
        </div>
    
       </div>
    
      </div>
    【小虎】1楼
  • 胡彬 #3 · 2017-08-27 17:31:48
    去掉dr_strcut试试看
  • 疾风 #4 · 2017-08-27 18:02:47
    【胡彬】3楼去掉之后可以了,但是页面变形了,我就是需要截取一段标题,怎么办呀



  • 徐树 #5 · 2017-08-27 20:49:55
    CSS控制div的高度,自动隐藏,
  • 疾风 #6 · 2017-08-27 20:52:46
    【徐树】5楼这种方法是最后的解决办法吧,正确的解决办法还是找到原因才对吧,毕竟首页也是截取字数显示正常,栏目页截取就有问题
  • iseeyo #7 · 2017-08-28 01:23:05
    看楼主的截图,列表页用dr_strcut会对特殊符号进行转码?可能是为了安全性吧,建议在官网“会员中心”、“工单服务”里直接反馈这个问题。
  • 疾风 #8 · 2017-08-28 17:07:33
    【iseeyo】7楼已经在官网工单服务反馈了,但是由于会员服务过期了,所以官方没有答复,而是直接帮我转发到论坛上了

  • 李治 #9 · 2017-08-28 20:00:41
    过期续费多少钱
    【疾风】8楼
  • 专打酱油 #10 · 2017-08-29 12:17:10
    续费要多少钱【疾风】8楼
  • 疾风 #11 · 2017-08-29 12:19:49
    2000一年
  • 李治 #12 · 2017-08-29 13:37:16
    没看到,哪里有2000一年【疾风】11楼
  • 苏先生 #13 · 2017-08-29 14:31:18
    这个你试着去改下 dr_strcut 函数看看改1708行 数据里面增加一个
    ,'&#9642;'   和  , '▪'
    $string = str_replace(array('&amp;', '&quot;', '&lt;', '&gt;','&#9642;'), array('&', '"', '<', '>', '▪'), $string);
    然后再更新缓存看看
  • 疾风 #14 · 2017-08-29 14:32:44
    不太想改源文件,怕改了之后以后升级又覆盖了

迅睿系统漏洞

图片格式转化
图片格式转化(2026-10-17)
修复百度编辑器里的内容图片没有转换为webp格式 历史文章列表不显...
站群分站系统
站群分站系统(2026-10-15)
子站域名新增llms.txt访问
图书阅读系统
图书阅读系统(2026-10-14)
全站移动端样式适配 首页分类 Tab 横滑容器,左右渐变滚动提示 ...
GEO系统
GEO系统(2026-10-14)
修复下载zip空白地址问题 修复流量复刻和任务队列错误
GeoSeo收录宝
GeoSeo收录宝(2026-10-14)
新增 站长工具箱 前端首页自动调用meta 数据
滑块验证码 Gocaptcha
滑块验证码 Gocaptcha(2026-10-13)
基于开源项目 go-captcha 的行为验证码插件,滑动拼图、区域...
GeoSeo工具箱
GeoSeo工具箱(2026-10-13)
优化巡检任务
GeoSeo排名助手
GeoSeo排名助手(2026-10-11)
加入大模型自定义
SEO聚合关键字
SEO聚合关键字(2026-10-11)
优化关键字列表页最多支持1万篇文章,过多会导致服务器扛不住;