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>
發佈了132 篇原創文章 · 獲贊 24 · 訪問量 6084
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章