• 分页前端的代码


    HTMl:

    <div class="paging">
                                <div class="page-num">
                                    <select id="selPageSize">
                                        <option value="10">10</option>
                                        <option value="20">20</option>
                                        <option value="50">50</option>
                                        <option value="100">100</option>
                                    </select>
                                </div>
                                <div class="page-prev-button">
                                    <a href="javascript:void(0)" class="page-prev-home"></a>
                                    <a href="javascript:void(0)" class="page-prev"></a>
                                </div>
                                <div class="page-curr">
                                    0/0
                                </div>
                                <div class="page-next-button">
                                    <a href="javascript:void(0)" class="page-next"></a>
                                    <a href="javascript:void(0)" class="page-next-end"></a>
                                </div>
                                <div class="page-count">&nbsp;<span>0</span>&nbsp;条
                                </div>
                            </div>

    CSS:

    .list-search .paging {
        height: 30px;
        background-color: #f5f5f5;
        padding: 5px;
        display: inline-block;
         100%;
    }
    
        .list-search .paging .page-num {
            display: inline-block;
            float: left;
            margin-right: 5px;
            border-right: solid 1px #ccc;
            padding-right: 5px;
        }
    
            .list-search .paging .page-num select {
                 50px;
                height: 21px;
            }
    
        .list-search .paging .page-prev-button {
             40px;
            height: 100%;
            display: inline-block;
            float: left;
            border-right: solid 1px #ccc;
        }
    
            .list-search .paging .page-prev-button .page-prev-home {
                display: inline-block;
                 15px;
                height: 100%;
                background: url('../images/CloudStorage/pagination_icons.png') no-repeat;
                background-position-y: 2px;
            }
    
            .list-search .paging .page-prev-button .page-prev {
                display: inline-block;
                 15px;
                height: 100%;
                background: url('../images/CloudStorage/pagination_icons.png') no-repeat;
                background-position: -20px 2px;
            }
    
        .list-search .paging .page-curr {
             70px;
            height: 100%;
            display: inline-block;
            float: left;
            text-align: center;
            border-right: solid 1px #ccc;
        }
    
        .list-search .paging .page-next-button {
             40px;
            height: 100%;
            display: inline-block;
            float: left;
            border-right: solid 1px #ccc;
        }
    
            .list-search .paging .page-next-button .page-next {
                display: inline-block;
                 15px;
                height: 100%;
                background: url('../images/CloudStorage/pagination_icons.png') no-repeat;
                background-position: -28px 2px;
            }
    
            .list-search .paging .page-next-button .page-next-end {
                display: inline-block;
                 15px;
                height: 100%;
                background: url('../images/CloudStorage/pagination_icons.png') no-repeat;
                background-position: -47px 2px;
            }
    
        .list-search .paging .page-count {
            height: 100%;
             100px;
            float: left;
            margin-left: 5px;
        }
  • 相关阅读:
    python hashlib模块
    OS模块-提供对操作系统进行调用的接口
    For循环
    python --time()函数
    使用docker部署prometheus和grafana 并监控mysql 配置告警
    记换换回收一个js逆向分析
    mitmproxy 在windows上的使用
    elasticsearch_dsl 的nested
    利用谷歌插件破解今日头条的新闻ajax参数加密,新手都能懂
    aiohttp爬虫的模板,类的形式
  • 原文地址:https://www.cnblogs.com/llcdbk/p/5973336.html
Copyright © 2020-2023  润新知