From 7014aa37d2c5f65d1654b158827547ecae230621 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B1=BC=E9=AA=A8=E5=89=AA?= <1580622474@qq.com> Date: Thu, 3 Oct 2024 11:37:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E4=B8=80=E4=B8=8B?= =?UTF-8?q?=E6=A0=87=E9=A2=98=E7=9A=84=E6=98=BE=E7=A4=BA=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 5db6b51..7bbc505 100644 --- a/index.html +++ b/index.html @@ -101,9 +101,14 @@ serverName.classList.add('server-name'); let updateFlag = serverData[key].updated ? '' : ' - Not updated -'; serverName.textContent = key + updateFlag; + // 设置标题字体大小 + serverName.style.fontSize = '22px'; // 直接设置字体大小 + serverName.style.fontWeight = 'bold'; // 可选:加粗标题 + serverName.style.backgroundColor = 'black'; // 背景设为黑色 + serverName.style.color = 'white'; // 文字设为白色 + serverName.style.padding = '10px'; // 增加内边距 + serverName.style.borderRadius = '5px'; // 可选:增加圆角 serverCard.appendChild(serverName); - // 分割线 - add_bar(serverCard); // 内存 if ('memory_info' in serverData[key]){ let memoryInfo = document.createElement('div');