Waxy主题:自定义网站背景

warning: 这篇文章距离上次修改已过1117天,其中的内容可能已经有所变动。

本篇文章为Waxy主题设置中自定义CSS/JS的高级应用。

如何自定义网站静态背景?

body {
    /*背景颜色*/
    background-color:#990505;
    /*背景图片url,可与上一项同时使用*/
    background-image: url(https://pic.idzd.top/usr/bg/5f6eeefb319ae1601105659386.jpg);
    /*背景图片重复方式,此处为不重复*/
    background-repeat: no-repeat;
    /*背景图片起始位置,此处为居中*/
    background-position: center;
    /*背景图片尺寸,此处为填充模式*/
    background-size: cover;
    /*背景图片是否滚动,此处为不滚动*/
    background-attachment: fixed;
}
评论已关闭