背景位置-方位名词应用二

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>超大背景图片</title>
    <style>
        body {
            background-image: url(images/bg.jpg);
            background-repeat: no-repeat;
            /* background-position: center top; */
            background-position: center 40px;

        }
    </style>
</head>

<body>

</body>

</html>
posted @ 2021-11-14 15:30  awsoyou  阅读(22)  评论(0)    收藏  举报