Dac*_*bah 2 pagination codeigniter spaces
我使用CodeIgniter的分页助手,它的工作原理.但是当我在浏览器中看到结果时,我可以观察到不需要的空间.CodeIgniter似乎以自动方式插入它们.
在我看来:
<div><?php echo $this->pagination->create_links(); ?></div>
Run Code Online (Sandbox Code Playgroud)
在(html)后面生成的代码:
<div>
<a href="http://...example.../6">Previous</a>
<a href="http://...example.../">1</a>
<a href="http://...example.../6">2</a>
<strong>3</strong>
<a href="http://...example.../18">4</a>
<a href="http://...example.../24">5</a>
<a href="http://...example.../18">Next</a>
<a href="http://...example.../30">Last</a>
</div>
Run Code Online (Sandbox Code Playgroud)
所以在我的上一个链接之前有一个空格,在我的"Last"链接之前有两个空格.当它被颠倒时(在我的"第一"链接之后的两个空格)发生同样的事情.
为什么?它真的让我大吃一惊!请你知道如何删除它们吗?
任何建议都感激不尽.
解决方案(感谢uzsolt的回答):它适用于first_tag_close和last_tag_open设置为''(有关详细信息,请参阅注释).
| 归档时间: |
|
| 查看次数: |
1818 次 |
| 最近记录: |