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;
    }
  • 相关阅读:
    关于Unity中的NavMeshAgent的remainingDistance问题
    关于Unity中MonoBehaviour的构造函数
    【Unity】Domina-Game总结与反思
    初步理解IOC和DI和AOP模式
    简单并查集归纳
    括号匹配-记错心得
    Django博客项目思路整理
    找零问题
    连续子序列最大和的O(NlogN)算法
    Python-demo(photo)
  • 原文地址:https://www.cnblogs.com/chenhaibo/p/3222822.html
Copyright © 2011-2022 走看看