在配置数组中,我使用这部分代码:
$config['prev_link'] = '<a class="round-icon" href="#" data-toggle="tooltip" data-title="Previous Page"><i class="iconfont-angle-left"></i></a>';
$config['prev_tag_open'] = '<li>';
$config['prev_tag_close'] = '</li>';
$config['next_link'] = '<a class="round-icon" href="#" data-toggle="tooltip" data-title="Next Page"><i class="iconfont-angle-right"></i></a>';
$config['next_tag_open'] = '<li>';
$config['next_tag_close'] = '</li>';
用于下一个和上一个按钮。它产生了什么:
<li>
<a href="...../categories/index/18"></a>
<a class="round-icon" href="#" data-toggle="tooltip" data-title="Next Page" data-original-title="">
<i class="iconfont-angle-right"></i>
</a>
</li>
所以你可以看到<a href="...../categories/index/18"></a>
没有包装一切。为什么没有发生,我该如何解决?
答案 0 :(得分:2)
您需要将所有包装器放在next_tag_open
和next_tag_close
上,只显示要在链接上显示的文本,这就是您要放在next_link
配置上的文本。< / p>
$config['next_link'] = '<i class="iconfont-angle-right"></i>';
$config['next_tag_open'] = '<li><a class="round-icon" href="#" data-toggle="tooltip" data-title="Next Page">';
$config['next_tag_close'] = '</a></li>';
next_tag_open . next_link . next_tag_close