PHP速学视频免费教程(入门到精通)
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
下面小编就为大家带来一篇jsp页面数据分页模仿百度分页效果(实例讲解)。小编觉得挺不错的,现在就分享jsp源码给大家,也给大家做个参考。对jsp感兴趣的一起跟随小编过来看看吧
废话不多说,直接上代码
请根据自己的项目、包名修改
nbsp;html> <meta> <title>数据分页</title> <style> .page a{ min-width: 34px; height: 34px; border: 1px solid #e1e2e3; cursor: pointer; display:block; float: left; text-decoration: none; text-align:center; line-height: 34px; } .page a:HOVER { background: #f2f8ff; border: 1px solid #38f ; } .page a.prev{ width:50px; } .page span{ width: 34px; height: 34px; border: 1px solid transparent; cursor: pointer; display:block; float: left; text-decoration: none; text-align:center; line-height: 34px; cursor: default; } </style>
ID | 姓名 | 年龄 | 专业 |
---|---|---|---|
首页",1)); if(currPage>=7){ start=currPage-5; end=currPage+4; } if(start>(pageCount-10)){ start=pageCount-9; } if(currPage>1){ out.print(String.format("上一页",currPage-1)); } for(int i=start;ipageCount) break; String pageinfo=String.format("%d",i,i); if(i==currPage){ pageinfo=String.format("%d",i); } out.print(pageinfo); } if(currPage下一页",currPage+1)); } out.print(String.format("尾页",pageCount)); %> |
以上这篇jsp页面数据分页模仿百度分页效果(实例讲解)就是小编分享给大家的全部内容了,希望能给大家一个参考!!
相关推荐:
已抢7336个
抢已抢95474个
抢已抢14937个
抢已抢52722个
抢已抢195929个
抢已抢87511个
抢