zibll主题设置网站的背景为图片背景

zibll主题设置网站的背景为图片背景

此方法仅适用于zibll

进入主题设置->全局&功能->自定义代码

将以下代码中的图片地址修改为你的图片地址后,保存到自定义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;
}

需要注意的是,网站背景图片的色调,亮度等都需要和整体颜色相互配合才能达到较好的效果,理性修改不然会变难看的!

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容