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;
    }
  • 相关阅读:
    Jquery清除style样式
    合并单元格式
    SQL根据下标,返回split分割后字符串
    js功能比较全面的yyyyMMdd格式的日期验证正则
    DataTable to Json
    List<T>下的Find,FindAll等条件过滤函数的使用方法
    获取iframe内部DOM对象
    PowerDesigner取消Name与Code同步
    再次回归
    最近遇到一个比较有意思的题目
  • 原文地址:https://www.cnblogs.com/chenhaibo/p/3222822.html
Copyright © 2011-2022 走看看