📜  添加完美的响应式背景图片 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:48:00.749000             🧑  作者: Mango

代码示例1
body {
    background-image: url('/your-image-url.png');
    background-size: cover;
    height: 100vh;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;

}