3种基本选择器选择范围和优先级


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <style>
        .box{
            width: 400px;
            height: 50px;

            border-top: 1px solid #f00;
            border-bottom: 3px solid #666;

            font-size: 20px;
            font-family: 微软雅黑;
            color: #333;
            line-height: 50px;
            text-align: center;
            font-weight: bold;
            
        }

    </style>

</head>
<body>


<div class="box">
    新闻列表
</div>


</body>
</html>
发布了128 篇原创文章 · 获赞 24 · 访问量 4281

猜你喜欢

转载自blog.csdn.net/return_min/article/details/103821107