1
0
mirror of https://gitee.com/bitdance-team/chrome-extension synced 2025-01-10 13:48:14 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

修复番茄钟背景图填充不完全问题

This commit is contained in:
程序员小墨 2022-02-09 22:32:06 +08:00
parent 6cd778a013
commit 0d29282d38
2 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,8 @@
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro&display=swap');
html {
height: 100%;
}
body {
/* background-color: rgb(51, 11, 116); */
background: url(../../images/pomo_green.jpeg) no-repeat;
@ -242,4 +245,4 @@ footer .settings {
position: absolute;
bottom: 5px;
right: 5px;
}
}

View File

@ -230,9 +230,9 @@ function change_r() {
}
function change(n) {
document.body.style = "background: url(" + photos[n] + ") no-repeat; background-size: cover;";
document.body.style = "background: url(" + photos[n] + ") no-repeat; background-size: cover; background-position: center;";
}
let t = setInterval(function() {
change_r();
}, 40000);
}, 40000);