翻页

作者: neko233 | 来源:发表于2018-09-12 09:14 被阅读0次
    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="UTF-8">
            <title>翻页</title>
                    <style type="text/css">
                *{
                    margin: 0;
                    padding: 0;
                }
                .title{
                        width: 896px;
                        height: 38px;
                        font-size: 12px;
                        border: 2px #DEDDD9 solid;
                        margin: 100px auto;
                }
                .chao{
    
                        width: 12px;
                        height: 12px;
                        font-size: 12px;
                        background-color: gold;
                        color: black;
                        font-family: "微软雅黑";
                        padding: 5px 10px;  
                        text-decoration: none;
                        position: relative;
                        left: 244px;
                        top: 10px;
                        margin: 0 auto;
                }
                .chao:hover{
                        color: red;
                }
                span{
                        width: 12px;
                        height: 12px;
                        font-size: 12px;
                        color: black;
                        font-family: "微软雅黑";
                        padding: 5px 10px;  
                        position: relative;
                        left: 244px;
                        top: 10px;
                        text-decoration: none;
                }
                .yige{
                        text-decoration: none;
                }
                .yige:hover{
                        color: red;
                }
            </style>
        </head>
        <body>
            <div class="title">
                    <a href="#" class="chao">上一页</a>
                    <a href="#" class="chao">1</a>
                    <a href="#" class="chao">2</a>
                    <a href="#" class="chao">3</a>
                    <a href="#" class="chao">4</a>
                    <span><a href="#" class="yige">...</a></span>
                    <a href="#" class="chao">18</a>
                    <a href="#" class="chao">19</a>
                    <a href="#" class="chao">20</a>
                    <a href="#" class="chao">下一页</a>
            </div>
        </body>
    </html>
    

    相关文章

      网友评论

          本文标题:翻页

          本文链接:https://www.haomeiwen.com/subject/itjmgftx.html