• 分页效果代码实例


    <nav class="pagenav clearfix">
    <a class='page-numbers' href='http://www.baidu.com/' title='第1页'>1</a>
    <a class='page-numbers' href='http://www.baidu.com/page/2' title='第2页'>2</a>
    <a class='page-numbers' href='http://www.baidu.com/page/3' title='第3页'>3</a>
    <span class='page-numbers current'>4</span>
    <a class='page-numbers' href='http://www.baidu.com/page/5' title='第5页'>5</a>
    <span class='right'><a class='page-numbers page-numbers-prev' href='http://www.baidu.com/page/3' title='上一页'>上一页</a>
    <span class="page-numbers-slash">/</span><a class='page-numbers page-numbers-next' href='http://www.baidu.com/page/5' title='下一页'>下一页</a></span>
    </nav>

    .pagenav {
    position: relative;
    z-index: 100;
    900px;
    margin: 30px;
    padding: 0 0 50px;
    text-align: left;
    font-weight: lighter;
    font-family: miranafont,"Hiragino Sans GB",STXihei,"Microsoft YaHei",SimSun,sans-serif;
    }
    .pagenav .page-numbers, .pagenav-search a {
    overflow: hidden;
    margin-right: 40px;
    height: 32px;
    color: #98a1b2;
    text-align: center;
    font-size: 18px;
    line-height: 32px;
    }
    .clearfix:before, .clearfix:after {
    display: table;
    content: " ";
    }
    .clearfix:after {
    clear: both;
    }
    .pagenav .page-numbers.current {
    color: #46b855;
    background:#f0f2f7;
    font-size: 30px;
    _border-bottom: 1px solid #46b855;
    }
    .right {
    float: right;
    }
    .pagenav .page-numbers.page-numbers-prev, .pagenav .page-numbers.page-numbers-next {
    margin-right: 0;
    }
    .page-numbers-slash {
    padding-right: 10px;
    padding-left: 10px;
    color: #98a1b2;
    }
    numbers.page-numbers-next {
    margin-right: 0;
    }

  • 相关阅读:
    空中楼阁 ( House )最短路
    [hdu4333]Revolving Digits
    vue element-ui el-table 选择框单选修改
    css 中间文字 两边横线
    uni-app计算scroll-view高度
    Swift Playgrounds Mac 编程学习入门
    vuecli vue.config.js 通用配置
    vuecli3 分环境打包的方案
    mysql 插入更新
    关闭进程
  • 原文地址:https://www.cnblogs.com/longhaolove/p/6001014.html
Copyright © 2020-2023  润新知