把下面背景图代码放到主题下的css里面,我是子比主题就放到后台的css里面就可以了,把下面代码的图片链接改成你需要的背景图就行了。
如果不想用背景图,改背景色也可以,下面的背景色代码放入css里面颜色代码我就不多说了。
/***日间主题模式***/
body {
background-image: url("https://aaaaaa.com/aaa.jpg");/**这里改为你自己的图片地址**/
background-position-x: center;
background-position-y: center;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
/***夜间主题模式***/
.dark-theme {
background-position-x: center;
background-position-y: center;
background-repeat: no-repeat;
background-attachment: fixed;
background-image: url("https://aaaaaa.com/bbb.jpg");/**这里改为你自己的图片地址**/
background-size: cover;
}
/*背景色*/body {background: -webkit-linear-gradient(0deg,#ffdee9c4 0%,#b5fffc8f 100%); background-color: #FFDEE9;}
您阅读这篇文章共花了: 0小时00分00秒
THE END
暂无评论内容