diff --git a/styles.css b/styles.css index f0a060a..86dff2d 100644 --- a/styles.css +++ b/styles.css @@ -4,7 +4,7 @@ /* 选项卡按钮样式 */ .tab { - display: flex; + display: inline-flex; overflow: hidden; border: 1px solid #ff69b4; /* 粉色边框 */ background-color: #ffc0cb; /* 粉色背景 */ @@ -151,7 +151,7 @@ span { font-weight: bold; } #tab-container { - display: flex; + width: 100%; /* 或者您希望的固定宽度 */ overflow-x: auto; white-space: nowrap; }