diff --git a/css/body.css b/css/body.css index 4e457a5..3d33fc2 100644 --- a/css/body.css +++ b/css/body.css @@ -41,3 +41,21 @@ body { margin: 10px; text-align: center; } + +/* 全屏按钮样式(仅大屏幕显示) */ +#fullscreen-button { + position: absolute; + right: 12px; + top: 7px; + background: none; + border: none; + cursor: pointer; + display: flex; + align-items: center; + transition: top 0.3s ease,transform 0.3s ease-in-out, padding 0.3s ease-in-out; /* 平滑放大动画 */ + transform-origin: center center; /* 确保放大时的中心不变 */ +} + +#fullscreen-button:hover { + transform: scale(1.20); /* 悬停时上下左右均匀放大 20% */ +} \ No newline at end of file diff --git a/icon/full.png b/icon/full.png new file mode 100644 index 0000000..bf41d6b Binary files /dev/null and b/icon/full.png differ diff --git a/icon/off.png b/icon/off.png new file mode 100644 index 0000000..109e4cf Binary files /dev/null and b/icon/off.png differ diff --git a/index.html b/index.html index 5cb6213..79746fa 100644 --- a/index.html +++ b/index.html @@ -13,6 +13,10 @@
+ +