Bing每日壁纸api链接code

1366*768分辨率图片地址:
https://api.dujin.org/bing/1366.php
1920*1080分辨率图片地址:
https://api.dujin.org/bing/1920.php
手机标准分辨率1080*1920图片地址:
https://api.dujin.org/bing/m.php
这两个API接口可以直接把它当做一个链接来用,插入如下代码:
<img src="https://api.dujin.org/bing/1366.php" alt="Bing每日图片" />
<img src="https://api.dujin.org/bing/1920.php" alt="Bing每日图片超高清" />
<img src="https://api.dujin.org/bing/m.php" alt="Bing每日图片手机超高清" />
动态更换的喔,小伙伴们可以直接把它当做BLOG的背景。

插入wordpress当登录页背景
将下面代码放入主题文件夹中的functions文件即可
/**
 * Sky自定义必应壁纸为登录页面背景
 * https://www.dujin.org/3618.html
 */
function custom_login_head(){
$imgurl = 'https://api.dujin.org/bing/1920.php';
if($imgurl){
    echo'
'; }} add_action('login_head', 'custom_login_head'); add_filter('login_headerurl', create_function(false,"return get_bloginfo('url');")); add_filter('login_headertitle', create_function(false,"return get_bloginfo('name');"));
作为其它页面背景
同样使用两个API接口(推荐使用大的),补充CSS部分,如何让背景图固定不随滚动条滚动。

background:fixed;
为你背景图所在的选择器内,添加上面这句声明即可。


引用接口网站列表:
查舍 http://www.caase.cn/
时代定制 http://www.shidaidiy.com/
幕鹿源码 http://www.mulu.cm/vip/
WP迷死 https://www.wpmes.cn/
娜云 https://www.naryun.com/cn
破口袋 https://www.pokoudai.com/user
游轶的小站 https://blog.devyi.com/
小七博客 https://www.xq6.net/vip
晔’s blog风与天空 https://www.okace.cn/

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值