-
- 添加时间:2009-03-31 发表时间:2009-03-31 人气:2411
- 做模板设计的时候,你可能希望去掉列表页分页代码里的空格,用如下代码即可:
<{$data_ary.main_article.links|regex_replace:"/(\ \;\s)|(\ \;)/":""}>
使用前的分页代码:
<b><u>1</u></b> <a href="/article/110_2.html" title=" 2">2</a> <a href="/article/110_3.html" title=" 3">3</a> <a href="/article/110_4.html" title=" 4">4</a> <a href="/article/110_5.html" title=" 5">5</a> <a href="/article/110_6.html" title=" 6">6</a> <a href="/article/110_7.html" title=" 7">7</a> <a href="/article/110_8.html" title=" 8">8</a> <a href="/article/110_9.html" title=" 9">9</a> <a href="/article/110_10.html" title=" 10">10</a> <a href="/article/110_11.html" title=" 11">11</a> <a href="/article/110_2.html" title="next page">下一页>></a> <a href="/article/110_2570.html" title="last page">末页</a>
使用后的分页代码:
<b><u>1</u></b><a href="/article/110_2.html" title=" 2">2</a><a href="/article/110_3.html" title=" 3">3</a><a href="/article/110_4.html" title=" 4">4</a><a href="/article/110_5.html" title=" 5">5</a><a href="/article/110_6.html" title=" 6">6</a><a href="/article/110_7.html" title=" 7">7</a><a href="/article/110_8.html" title=" 8">8</a><a href="/article/110_9.html" title=" 9">9</a><a href="/article/110_10.html" title=" 10">10</a><a href="/article/110_11.html" title=" 11">11</a><a href="/article/110_2.html" title="next page">下一页>></a><a href="/article/110_2570.html" title="last page">末页</a>
这时候,你就可以完全使用css来精确控制分页效果了。
点这里复制本页地址发送给您QQ/MSN上的好友
- 相关文章
- 本文章所属分类:首页→ 模板定制