Skip to content

Commit 675fb74

Browse files
committed
fix: 修復關閉按鈕位置跑出教學文件的問題
- 將 position: fixed 改為 position: absolute - 關閉按鈕現在相對於 .markdown-content 容器定位 - 確保按鈕始終在文件內部右上角 - 統一桌面版和手機版的定位方式
1 parent fa4f69a commit 675fb74

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,9 @@
290290
}
291291

292292
.markdown-close {
293-
position: fixed;
294-
top: 60px;
295-
right: calc((100% - min(900px, 90%)) / 2 + 20px);
293+
position: absolute;
294+
top: 20px;
295+
right: 20px;
296296
width: 30px;
297297
height: 30px;
298298
cursor: pointer;
@@ -342,7 +342,7 @@
342342
transform: scale(0.96);
343343
}
344344

345-
@media (max-width: 900px) {
345+
@media (max-width: 768px) {
346346
.markdown-close {
347347
right: 15px;
348348
top: 15px;

0 commit comments

Comments
 (0)