首页 > 技术知识 > 使用技巧 XIYCMS内容管理系统

xiycms如何实现内容的上一页、下一页

作者:XIYCMS内容管理系统 更新:2019-12-28 19:14:14 来源:XIYCMS 人气:166

1.上一篇、下一篇:

{rs id="rs" top="1" table="xiy_content" where="classid in ($sonid) and islock=0 and id<$id" order="id desc"}            上一篇:{:getSubstr($rs.title,0,40)}{/rs}{rs id="rs" top="1" table="xiy_content" where="classid in ($sonid) and islock=0 and id>$id" order="id asc"}            下一篇:{:getSubstr($rs.title,0,40)}{/rs}

2.上一篇、下一篇对应css:

.xiycms-pagepn { height: auto; line-height: 50px; border-top: 1px solid #EAEAEA; border-bottom: 1px solid #EAEAEA; margin:30px 0;}.xiycms-pagepn a { width: 45%; word-wrap: normal;  text-overflow: ellipsis; white-space: nowrap; overflow: hidden; display: block; }.xiycms-pagepn a.l{float:left;}.xiycms-pagepn a.r{float:right;}


你觉得这篇文章怎么样?

4 0



评论

发表

栏目分类

使用技巧推荐文章

使用技巧热门文章