perf: 背景图转换为 webp 格式优化加载,删除原 jpg 文件
This commit is contained in:
parent
0f92a2467a
commit
cb8070152c
6 changed files with 3 additions and 1 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 3.8 MiB |
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 |
Binary file not shown.
|
Before Width: | Height: | Size: 5.3 MiB |
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