大学IT网 - 最懂大学生的IT学习网站! QQ资料交流群:367606806
当前位置:大学IT网 > ASP.NET技巧 > AspNetPager分页控件定义及应用样式示例介绍

AspNetPager分页控件定义及应用样式示例介绍

关键词:AspNetPager分页控件  阅读(379) 赞(9)

[摘要]AspNetPager分页控件想必大家并不陌生吧,在本文将为大家详细介绍下此控件的css样式定义,感兴趣的朋友可以参考下
网易风格:
首页前页12345678910...后页尾页

CSS样式:
.anpager .cpb {background:#1F3A87 none repeat scroll 0 0;border:1px solid #CCCCCC;color:#FFFFFF;font-weight:bold;margin:5px 4px 0 0;padding:4px 5px 0;}
.anpager a {background:#FFFFFF none repeat scroll 0 0;border:1px solid #CCCCCC;color:#1F3A87;margin:5px 4px 0 0;padding:4px 5px 0;text-decoration:none}
.anpager a:hover{background:#1F3A87 none repeat scroll 0 0;border:1px solid #1F3A87;color:#FFFFFF;}

属性设置:CssClass="anpager" CurrentPageButtonClass="cpb"
--------------------------------------------------------------------------------

拍拍网风格:
首页上一页12345678910...下一页尾页

CSS样式:
.paginator { font: 11px Arial, Helvetica, sans-serif;padding:10px 20px 10px 0; margin: 0px;}
.paginator a {padding: 1px 6px; border: solid 1px #ddd; background: #fff; text-decoration: none;margin-right:2px}
.paginator a:visited {padding: 1px 6px; border: solid 1px #ddd; background: #fff; text-decoration: none;}
.paginator .cpb {padding: 1px 6px;font-weight: bold; font-size: 13px;border:none}
.paginator a:hover {color: #fff; background: #ffa501;border-color:#ffa501;text-decoration: none;}

属性设置:CssClass="paginator" CurrentPageButtonClass="cpb"
--------------------------------------------------------------------------------

迅雷风格:
首页上一页12345678910...下一页尾页

CSS样式:
.pages { color: #999; }
.pages a, .pages .cpb { text-decoration:none;float: left; padding: 0 5px; border: 1px solid #ddd;background: #ffff;margin:0 2px; font-size:11px; color:#000;}
.pages a:hover { background-color: #E61636; color:#fff;border:1px solid #E61636; text-decoration:none;}
.pages .cpb { font-weight: bold; color: #fff; background: #E61636; border:1px solid #E61636;}

属性设置:CssClass="pages" CurrentPageButtonClass="cpb"


相关评论