zoukankan      html  css  js  c++  java
  • phpcms分页使用

     #pages {
      padding: 14px 0 10px;
      font-family: 宋体;
    }
    .text-c {
      text-align: center;
    } 
     #pages span {
      display: inline-block;
      height: 22px;
      line-height: 22px;
      background: #5a85b2;
      border: 1px solid #5a85b2;
      color: #fff;
      text-align: center;
      padding: 0 10px;
    }
    #pages a.a1 {
       56px;
      padding: 0;
    }
    #pages a {
      display: inline-block;
      height: 22px;
      line-height: 22px;
      background: #fff;
      border: 1px solid #d8d8d8;
      text-align: center;
      color: #333;
      padding: 0 10px;
      background-color: #fff;
    }


    //调用数据分页 {pc:content action
    ="lists" catid="$catid" num="10" order="listorder DESC" page="$_GET[page]"} //每页10条信息   {loop $data $r}     <li><a href="{$r[url]}" title="{$r[title]}" target="_blank" >{str_cut($r[title],120,'')}</a> <span class="time">{date('Y-m-d',$r[inputtime])}</span></li>   {/loop} {/pc}


    //分页的html代码
    <div id="pages" class="text-c">{$pages}</div>
  • 相关阅读:
    寒假记录六
    寒假记录5
    寒假记录4
    寒假记录3
    寒假记录2
    寒假记录1
    hive数据库课堂测试
    第一周
    个人总结
    课程总结
  • 原文地址:https://www.cnblogs.com/qhorse/p/4602444.html
Copyright © 2011-2022 走看看