首先找到一个背景图片放到 hexo(hexo工程文件)-> themes -> next -> source
-> images 的路径下;hexo(hexo工程文件)-> themes -> next -> source -> css -> _custom
,找到路径下的custom.styl文件,在文件中添加代码:1
2
3
4
5body {
background: url(/images/background.jpg) no-repeat center fixed;
background-size: 100%;
opacity: 0.8;
}
注意: 背景图片名字可以自己随便设置,在这里我设置成background.jpg,透明度0-1之间