您好,欢迎访问一九零五行业门户网

JS分页效果示例_javascript技巧

分页
复制代码 代码如下:
复制代码 代码如下:
/*--------pager-------*/
.number span a{padding:4px 6px;}
.number span a:hover{padding:4px 6px; background-color: #999;color:#ffffff;}
.number {margin:5px 0;font-size: 14px;font-weight: bold;color: #ff00ff;}
.number span{border:solid 1px #cccccc;background-color:#ffffff;color:#666666;line-height:20px;display:inline-block;margin-left:4px;margin-right:4px;}
#a_title{ text-align:center; height:30px; line-height:30px;font-size:18px; font-weight:bolder; display:block}
#a_smalltitle{font-size:14px; font-weight:bolder; text-align:center;display:block;}
.a_about{text-align:center; display:block; height:20px; line-height:20px; background:#f3f8f7}
#a_content{padding:10px; height:auto;overflow:hidden;text-align:left;line-height: 200%; word-break:break-all;}
#a_near{padding-left:20px; margin:5px 0; height:auto}
.red{ color:red}
public void bind()
{
maticsoft.bll.news bllnews = new maticsoft.bll.news();
pageddatasource ps = new pageddatasource();
ps.datasource = bllnews.getalllist().tables[0].defaultview;
ps.allowpaging = true;
ps.pagesize = 5;//分页大小
ps.currentpageindex = currentpage - 1;
pagecount = ps.pagecount.tostring();
r1.datasource = ps;
r1.databind();
}
其它类似信息

推荐信息