博客園博客背景圖片設置

首先在博客園後臺管理頁面的相冊上傳本身想要設置背景的圖片: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%;
    }

最後效果:圖片

相關文章
相關標籤/搜索