perf: 背景图转换为 webp 格式优化加载,删除原 jpg 文件
This commit is contained in:
parent
38c538cfb1
commit
f35de394fc
4 changed files with 3 additions and 1 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
task.md
|
||||
/.wrangler
|
||||
BIN
grid-study/src/wallpaper/big_sure.webp
Normal file
BIN
grid-study/src/wallpaper/big_sure.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 721 KiB |
BIN
grid-study/src/wallpaper/desert.webp
Normal file
BIN
grid-study/src/wallpaper/desert.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 MiB |
|
|
@ -1,7 +1,7 @@
|
|||
html, body { height: 100%; }
|
||||
body {
|
||||
/* 使用 Bing 图片作为背景 */
|
||||
background-image: url('src/wallpaper/big_sure.jpg');
|
||||
background-image: url('src/wallpaper/big_sure.webp');
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue