博客园实现刷新页面切换背景图片的效果

参考链接:https://blog.csdn.net/weixin_34396902/article/details/89626401

页面定制css代码

body {
       background: url(填一个能够随机获取图片的API接口) no-repeat top center fixed;
}

随机获取图片的API接口

环境背景

https(推荐):
https://img.xjh.me/random_img.php?type=bg&ctype=nature&return=302
http(更快,快一点点,不安全,可能会被劫持):
http://img.xjh.me/random_img.php?type=bg&ctype=nature&return=302

人物背景

https(推荐):
https://img.xjh.me/random_img.php?type=bg&ctype=acg&return=302
http(更快,快一点点,不安全,可能会被劫持):
http://img.xjh.me/random_img.php?type=bg&ctype=acg&return=302

 

posted @   没有你哪有我  阅读(115)  评论(1编辑  收藏  举报
相关博文:
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)
历史上的今天:
2021-05-19 什么是LAMP?LAMP有什么优势?
点击右上角即可分享
微信分享提示