
2

必应每日壁纸
source link: https://paugram.com/help/bing
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

使用方法:
调用地址 https://api.paugram.com/bing/
可自动跳转到对应的壁纸
如果您已开始使用本 API 服务,则默认视为遵守 本约定。
图片版权归原作者所有,本站不为滥用本 API 进行违规操作者承担责任。
参数
描述
info
返回 JSON 数据,包含图片来源及版权资料
调用一张当天的图片
https://api.paugram.com/bing
调用一张当天的图片,并使用 JSON 形式返回资料
https://api.paugram.com/bing/?info
返回的是:
{
"link":"https://cn.bing.com/th?id=OHR.QatarMuseum_EN-US2624327100_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp",
"copyright":"National Museum of Qatar in Doha, Qatar (© Hasan Zaidi/Shutterstock)",
}
在网页背景上使用本 API
body{
background: url("https://api.paugram.com/bing/") center/cover no-repeat;
}
在网页背景上使用本 API(伪元素半透明版)
body:before{
top: 0;
left: 0;
right: 0;
bottom: 0;
opacity: .3;
z-index: -1;
content: "";
position: fixed;
background: url(https://api.paugram.com/bing/) center/cover;
}
使用 img
标签引用图片
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK