fix: 主题按钮添加内联样式防止加载闪烁
- 给主题切换按钮添加 position:fixed;top:20px;right:20px 内联样式 - 解决 CSS 加载延迟导致按钮位置闪烁的问题 - welcome.html 不需要修改(按钮在导航栏内)
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<button class="theme-toggle" aria-label="切换主题">🌙</button>
|
<button class="theme-toggle" style="position:fixed;top:20px;right:20px;" aria-label="切换主题">🌙</button>
|
||||||
<div class="avatar">
|
<div class="avatar">
|
||||||
<span class="sparkle">👋</span>
|
<span class="sparkle">👋</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container auth-container">
|
<div class="container auth-container">
|
||||||
<button class="theme-toggle" aria-label="切换主题">🌙</button>
|
<button class="theme-toggle" style="position:fixed;top:20px;right:20px;" aria-label="切换主题">🌙</button>
|
||||||
<div class="avatar">
|
<div class="avatar">
|
||||||
<span>🔐</span>
|
<span>🔐</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container auth-container">
|
<div class="container auth-container">
|
||||||
<button class="theme-toggle" aria-label="切换主题">🌙</button>
|
<button class="theme-toggle" style="position:fixed;top:20px;right:20px;" aria-label="切换主题">🌙</button>
|
||||||
<div class="avatar">
|
<div class="avatar">
|
||||||
<span>📝</span>
|
<span>📝</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user