$this->load->library('pagination'); // 加载分页
$config['pagination_fix'] = true; // 是否启用分页修正功能,如设置为 false 则和系统自带分页类无异
$config['first_url'] = site_url('info'); // 分页链接首页链接
$config['base_url'] = site_url() . '/info/index'; // 分页链接配置
……
// 修正样式开始
$config['cur_rows_tag_open'] = '<a class="number">当前第 ';
$config['cur_rows_tag_middle'] = ' ~ ';
$config['cur_rows_tag_close'] = ' 条</a>';
$config['total_rows_tag_open'] = ' <a class="number">共 ';
$config['total_rows_tag_close'] = ' 条</a>';
$config['total_pages_tag_open'] = ' <a class="number">计 ';
$config['total_pages_tag_close'] = ' 页</a>';
// 修正样式结束
……
$this->pagination->initialize($config);