From 677f6270fe8ac5cc38e720af95ed980e8ec681a6 Mon Sep 17 00:00:00 2001 From: Cx330 <1487537121@qq.com> Date: Sun, 20 Apr 2025 17:24:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A7=BB=E5=8A=A8=E7=AB=AF?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E6=95=88=E6=9E=9C=E3=80=81=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=B7=A6=E5=8F=B3=E5=8C=BA=E5=9F=9F=E5=88=87=E6=8D=A2=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/max_width.css | 51 +++++++++++++++++------------------ index.html | 10 +++---- javascape/switch_interface.js | 13 +++++++++ 3 files changed, 42 insertions(+), 32 deletions(-) create mode 100644 javascape/switch_interface.js diff --git a/css/max_width.css b/css/max_width.css index a715c97..362c850 100644 --- a/css/max_width.css +++ b/css/max_width.css @@ -3,35 +3,32 @@ flex-direction: column; } - .left-panel, .right-panel { + #fullscreen-button { + padding-right: 10px; + padding-top: 10px; + } + + .left-panel { + width: 100%; + display: flex; + justify-content: center; + align-items: center; + } + + .right-panel { width: 100%; display: none; + justify-content: center; + align-items: center; } - .chat-container { - bottom: 0; - } - - footer { - padding-bottom: 60px; - } - - .mobile-toggle { - display: block; - } - - .mobile-toggle button { - margin: 0 5px; - padding: 8px 16px; - font-size: 14px; - border: none; - background-color: #007BFF; - color: white; - border-radius: 4px; - cursor: pointer; - } - - .mobile-toggle button:hover { - background-color: #0056b3; - } + .switch_button { + position: fixed; + left: 50%; + right: auto; + transform: translateX(-50%); + bottom: 120px; + z-index: 1; + } + } \ No newline at end of file diff --git a/index.html b/index.html index 1024774..738d65c 100644 --- a/index.html +++ b/index.html @@ -20,7 +20,7 @@
-
+

DreamLife

这是我的网站首页,主页代码正在完善中

@@ -36,7 +36,7 @@
-
+
--:--:--
@@ -50,9 +50,8 @@
-
- - +
+
@@ -77,6 +76,7 @@ + \ No newline at end of file diff --git a/javascape/switch_interface.js b/javascape/switch_interface.js new file mode 100644 index 0000000..67af9d1 --- /dev/null +++ b/javascape/switch_interface.js @@ -0,0 +1,13 @@ +const Panel_left = document.getElementById('leftPanel'); +const Panel_right = document.getElementById('rightPanel'); + +function hideLeftPanel() { + if (Panel_right.style.display === 'none' || Panel_right.style.display === '') { + Panel_left.style.display = 'none'; + Panel_right.style.display = 'flex'; + } + else { + Panel_left.style.display = 'flex'; + Panel_right.style.display = 'none'; + } +} \ No newline at end of file