zoukankan      html  css  js  c++  java
  • 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;
    }
  • 相关阅读:
    记录log中的16进制和ASCII码字符输出
    有效的沟通技巧
    时间的真谛
    目标设定与时间管理
    第四代时间管理
    什么是高效沟通
    error LNK1104: cannot open file 错误解决方案
    js压缩工具1.0界面绘制
    时间管理的定义与目的
    JArgs命令行选项解析>Java套件
  • 原文地址:https://www.cnblogs.com/chenhaibo/p/3222822.html
Copyright © 2011-2022 走看看