0
点赞
收藏
分享

微信扫一扫

行盒的盒模型练习——百度分页

沉浸在自己的世界里 2022-02-16 阅读 39
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>百度分页数字</title>
    <style>
        .page{
            background-color: #f5f5f6;
        }
        .page strong a{
            background-color:#fff;
            display: inline-block;
            text-decoration: none;
            font: 14px arial;
            color:#4e6ef2;
            width: 36px;
            height: 36px;
            box-sizing: border-box;
            text-align: center;
            line-height: 36px;
            border-radius: 6px;
        }
        .page strong a:hover{
            border: solid;
            background-color: #4e6ef2;
            color: #fff;
        }
    </style>
</head>
<body>
    <div class="page">
        <strong>
            <a href="">1</a>
            <a href="">2</a>
            <a href="">3</a>
            <a href="">4</a>
            <a href="">5</a>
            <a href="">6</a>
            <a href="">7</a>
            <a href="">8</a>
            <a href="">9</a>
            <a href="">10</a>
        </strong>
        
    </div>
</body>
</html>

效果图:
在这里插入图片描述

举报

相关推荐

0 条评论