博客园博客背景图片设置

首先在博客园后台管理页面的相册上传本身想要设置背景的图片:url

上传完成以后点击该图片进去:spa

看到大图再经过控制台获取路径3d

而后转到设置:code

加上以下代码:blog

    body{
    background-image: url("此处黏贴你刚刚找到的图片路径");
    background-position: initial;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-origin: initial;
    background-clip: initial;
    height:100%;
    width:100%;
    }

最后效果:图片

相关文章
相关标签/搜索