分享
  • 收藏
  • 举报
    X
    这个模板是不是有错误呢?调用论坛帖子的内容,不显示任何文本
    • 中国羊病网 消费98.9元 2019-03-24 16:05 16:05
    730
    3

    <!--你当前选择的模板文件是:common/view/title/img_001.htm-->

    <link href="__STATIC__/images/template/title/img_001/style.css" rel="stylesheet" type="text/css" />

    <div class="qb_img_001">

    <?php if(is_array($__LIST__) || $__LIST__ instanceof \think\Collection || $__LIST__ instanceof \think\Paginator): $i = 0; $__LIST__ = $__LIST__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$rs): $mod = ($i % 2 );++$i;?>

    <ul>

    <ol><a href="<?php echo $rs['url']; ?>" target="_blank"><img onerror="this.src='__STATIC__/images/nopic.png'" src="<?php echo $rs['picurl']; ?>"></a></ol>

    <li>

    <h3><a href="<?php echo $rs['url']; ?>" target="_blank"><?php echo $rs['title']; ?></a></h3>

    <p><?php echo get_word($rs['content'],$cleng>10?:200); ?></p>

    <div><?php echo $rs['time']; ?> · <?php echo $rs['view']; ?>次浏览</div>

    </li>

    </ul>

    <?php endforeach; endif; else: echo "" ;endif; ?>

    </div> 

    <script type="text/javascript">

    $(window).resize(function () {          //当浏览器大小变化时

       qb_img_001();

    });

    $(function(){ 

    qb_img_001();

    });

    function qb_img_001(){

    $('.qb_img_001').each(function(){

    $(this).find('ul').removeAttr('class');

    var thisObjW=$(this).width();

    if(thisObjW>1200){

    $(this).find('ul').addClass('type1');

    }else if(thisObjW<1200 && thisObjW>801){

    $(this).find('ul').addClass('type2');

    }else if(thisObjW<800 && thisObjW>501){

    $(this).find('ul').addClass('type3');

    }else if(thisObjW<500 && thisObjW>351){

    $(this).find('ul').addClass('type4');

    }else{

    $(this).find('ul').addClass('type5');

    }

    });

    }

    $('.qb_img_001 img').hover(

    function(){$(this).animate({"max-width":"150%","max-height":"150%"},300);},

    function(){$(this).animate({"max-width":"98%","max-height":"96%"},300);}

    );

    </script>







    红色的位置没有任何文本显示出来!

    4
    赏礼
    赏钱
    收藏
    点击回复
        全部留言
    • 3
    0 赏钱 赏礼回复
    • 中国羊病网 普通粉丝 消费:98.9元 2019-03-24 16:13 16:136楼

      好,谢谢

    0 赏钱 赏礼回复
    更多回复
    恢复多功能编辑器
  • 3 1
  • 推荐内容
    扫一扫访问手机版
    请选择要切换的马甲:

     
    网页即时交流
    QQ咨询
    咨询热线
    020-28998648