diff --git a/styles.css b/styles.css index 526cb58..39292b5 100644 --- a/styles.css +++ b/styles.css @@ -4,6 +4,7 @@ /* 选项卡按钮样式 */ .tab { + display: flex; overflow: hidden; border: 1px solid #ff69b4; /* 粉色边框 */ background-color: #ffc0cb; /* 粉色背景 */ @@ -136,3 +137,19 @@ span { font-size: 1.2em; font-weight: bold; } +#tab-container { + display: flex; + overflow-x: auto; + white-space: nowrap; +} + +/* .tab { + display: flex; +} */ + +.tablinks { + display: inline-block; + padding: 10px; + border: 1px solid #ccc; + cursor: pointer; +} diff --git a/test.html b/test.html index f9010e4..595b7c3 100644 --- a/test.html +++ b/test.html @@ -12,34 +12,35 @@ 50 -
- - -
-
-

点击日期后,当前位置显示所点日期

-
- - - - - - - - - - - - - - - +
+
+ + +
+
+

点击日期后,当前位置显示所点日期

+
+
-
- < - - > -
-
+ + + + + + + + + + + + + +
+
+ < + + > +
+