fix: 修正资源路径,确保背景和图标正确加载

This commit is contained in:
MKStoler1024 2025-01-23 07:52:22 +00:00
parent 82e21728a7
commit 70691ad4ae
2 changed files with 3 additions and 5 deletions

View File

@ -2,7 +2,7 @@ body {
font-family: 'HarmonyOS Sans SC Regular', 'Roboto', Arial, sans-serif; font-family: 'HarmonyOS Sans SC Regular', 'Roboto', Arial, sans-serif;
margin: 0; margin: 0;
padding: 0; padding: 0;
background: url('/background.jpg') no-repeat center center fixed; background: url('../background.jpg') no-repeat center center fixed;
background-size: cover; background-size: cover;
animation: fadeIn 1s; animation: fadeIn 1s;
color: #e0e0e0; color: #e0e0e0;

View File

@ -19,8 +19,6 @@
`=---=' `=---='
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
佛祖保佑 永无BUG 佛祖保佑 永无BUG
佛祖有BUG 代码也没BUG
(莫要打我……真的就开个玩笑!)
--> -->
<!DOCTYPE html> <!DOCTYPE html>
<html lang="zh-CN"> <html lang="zh-CN">
@ -29,12 +27,12 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>当前时间</title> <title>当前时间</title>
<link rel="shortcut icon" href="/favicon.png"> <link rel="shortcut icon" href="../favicon.png">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=DM+Sans|Inter|Space+Mono|Work+Sans|Libre+Franklin&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=DM+Sans|Inter|Space+Mono|Work+Sans|Libre+Franklin&display=swap" rel="stylesheet">
<style> <style>
body { body {
background: url('/background.jpg') no-repeat center center fixed; background: url('../background.jpg') no-repeat center center fixed;
background-size: cover; background-size: cover;
margin: 0; margin: 0;
padding: 0; padding: 0;