Css查漏补缺12-b站背景小实例

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>背景</title>
    <style>
        header{
            height: 180px;
            background-image: url("bilibili.png");
            background-color: #f9f9f9;
            background-repeat: no-repeat;
            background-position: center 0;
            background-size: cover;
        }
    </style>
</head>
<body>
<div>
    <header></header>
</div>
</body>
</html>

 

posted @ 2020-06-22 23:40  Tsui98'  阅读(129)  评论(0编辑  收藏  举报