优化样式

This commit is contained in:
BianLzhaoMin 2025-06-16 15:40:47 +08:00
parent 0393c7b79d
commit 60983dadab
1 changed files with 5 additions and 3 deletions

View File

@ -462,19 +462,21 @@ body {
left: 50% !important;
transform: translateX(-50%) !important;
z-index: 999;
font-size: 32px;
font-size: 38px;
font-weight: bold;
letter-spacing: 6px;
letter-spacing: 10px;
font-family: "Alibaba PuHuiTi R";
background: linear-gradient(to right, #c9d6ff, #e2e2e2);
color: #063268;
border-radius: 2px;
padding: 0 12px; /* 内边距 */
padding: 4px 12px; /* 内边距 */
/* 新增关键样式 */
max-width: 100%; /* 最大宽度不超过父盒子 */
min-width: 67%;
box-sizing: border-box; /* 让 padding 计算在 max-width 内 */
white-space: nowrap; /* 防止文字换行(可选) */
overflow: hidden; /* 防止内容溢出(可选) */
text-overflow: ellipsis; /* 超出时显示省略号(可选) */
text-align: center;
}