Dedecms列表页分页错位问题解决方案
类别:建站知识   时间:12-26

很多织梦dedecms网站遇到一个问题,在仿站过程中,目标网站列表页分页是对a标记进行css样式定义的,而织梦里面的列表页里面有li标记,就会导致错位,今天编者写了一个函数,就可以解决这个问题if(!function_exists('getNewList')){function getNewList($str){$str = preg_replace("#<li(.*?)>|</li>#","",$str);return $str;}}将这个函数写入到include/extend.func.php,然后列表页调用的时候用{dede:pagelist listitem="index,end,pre,next,pageno" listsize="4" function="getNewList(@me)"/}

智慧半岛,是一家专注于青岛网站建设青岛网站开发的青岛网络公司,Copyright ©2007-2019 Ebandao.Cn 版权所有 All Rights Reserved.(建议在1366x768以上的浏览器中访问)鲁ICP备08014496号

13153297890