DataPager 分页样式(css)

 <asp:DataPager ID="DataPager1" runat="server" PagedControlID="LV" PageSize="20">
                <Fields>
                    <asp:NextPreviousPagerField ShowFirstPageButton="True" ShowNextPageButton="False"
                        ShowPreviousPageButton="False" FirstPageText="&lt;&lt;" 
                        LastPageText="尾页" />
                    <asp:NumericPagerField ButtonCount="5" CurrentPageLabelCssClass="current" />
                    <asp:NextPreviousPagerField ShowLastPageButton="True" ShowNextPageButton="False"
                        ShowPreviousPageButton="False" FirstPageText="首页" 
                        LastPageText="&gt;&gt;" />
                </Fields>
            </asp:DataPager>

 

PagedControlID="LV"  对应的是  asp:ListView ID="LV"

current.css

/*页面分页样式*/
     
span#ContentPlaceHolder1_DataPager1 a.aspNetDisabled
{
    border: 1px solid #382a4a;
    padding: 2px 5px;
    margin: 2px;
    color: #4c3766;
    text-decoration: none;
}

span#ContentPlaceHolder1_DataPager2 a.aspNetDisabled
{
    border: 1px solid #382a4a;
    padding: 2px 5px;
    margin: 2px;
    color: #4c3766;
    text-decoration: none;
}

span#ContentPlaceHolder1_DataPager3 a.aspNetDisabled
{
    border: 1px solid #382a4a;
    padding: 2px 5px;
    margin: 2px;
    color: #4c3766;
    text-decoration: none;
}

#ContentPlaceHolder1_DataPager1 a
{
    border: 1px solid #563f83;
    padding: 2px 5px;
    margin: 2px;
    color: #9966FF;
    text-decoration: none;
}

#ContentPlaceHolder1_DataPager2 a
{
    border: 1px solid #563f83;
    padding: 2px 5px;
    margin: 2px;
    color: #9966FF;
    text-decoration: none;
}

#ContentPlaceHolder1_DataPager3 a
{
    border: 1px solid #563f83;
    padding: 2px 5px;
    margin: 2px;
    color: #9966FF;
    text-decoration: none;
}

#ContentPlaceHolder1_DataPager1 a:hover
{
    border: 1px solid #9966FF;
}

#ContentPlaceHolder1_DataPager2 a:hover
{
    border: 1px solid #9966FF;
}

#ContentPlaceHolder1_DataPager3 a:hover
{
    border: 1px solid #9966FF;
}

.current
{
    border: 1px solid #9933FF;
    padding: 2px 5px 2px 5px;
    font-weight: bold;
    color: #fff;
    background-color: #CC66FF;
}

 

 

转载于:https://www.cnblogs.com/chenhaibo/p/3222822.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值