diff --git a/exam/script.js b/exam/script.js index 83ee812..92d4d1a 100644 --- a/exam/script.js +++ b/exam/script.js @@ -43,6 +43,8 @@ document.addEventListener("DOMContentLoaded", () => { examNameElem.textContent = currentText.replace(/考试安排.*/, newText); // Display message messageElem.textContent = data.message; + roomElem.style.position = "absolute"; + roomElem.style.right = "20px"; } function updateCurrentTime() { diff --git a/exam/styles.css b/exam/styles.css index a70f403..d7984b4 100644 --- a/exam/styles.css +++ b/exam/styles.css @@ -81,6 +81,8 @@ h1 { font-size: 3.5rem; font-weight: bold; color: #e0e0e0; + position: absolute; + right: 20px; } #message {