织梦园模板网提供云优cms模板,pbootcms模板,Wordpress主题模板等各类企业新闻资讯网站模板下载服务。织梦园网站模板交流群
用户名:
密码:
注册
注册后享受折扣价

dede列表页分页错位问题解决方案

织梦园模板 / 2018-02-25 / 收藏
很多网站遇到一个问题,在仿站过程中,目标网站列表页分页是对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)"/}

相关故障问题

收缩