hexo next主题更换了背景图,如何让背景图不随着页面移动而移动?
关注者
11被浏览
4,2152 个回答
在你设置hexo 背景图片的文件(/themes/next/source/css/_custom)
根据这个设置就可以:
// Custom styles.
body {
background:url(/images/background.jpeg);
background-attachment: fixed;
}
正如上面所说:加上
background-attachment: fixed;