This commit is contained in:
底层用户 2021-11-17 16:29:00 +08:00
parent e01e943353
commit 917517c1b0
4 changed files with 9 additions and 1 deletions

View File

@ -36,6 +36,12 @@ a:hover {
transition: 0.5s;
}
#section {
background-image: url(https://api.ixiaowai.cn/gqapi/gqapi.php), url(../img/background.jpg);
background-repeat: no-repeat;
background-position: center center;
}
/*页面样式*/
section {
display: block;

BIN
img/background.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

View File

@ -74,7 +74,7 @@ fetch('https://v1.hitokoto.cn')
.catch(console.error)
//获取天气
fetch('https://www.tianqiapi.com/free/day?appid=43986679&appsecret=TksqGZT7')
fetch('https://www.tianqiapi.com/free/day?appid=43986679&appsecret=TksqGZT7&unescape=1')
.then(response => response.json())
.then(data => {
const wea = document.getElementById('wea_text')
@ -155,10 +155,12 @@ if (imgUrls == null) {
}
*/
//临时更换图片 api
/*
var $section = $('#section');
var url = "https://api.ixiaowai.cn/gqapi/gqapi.php";
$section.css("background", "url('" + url + "') center center no-repeat #666");
$section.css("background-size", "cover");
*/
//加载动画
window.addEventListener('load', function () {