diff --git a/src/views/portal/course/Index.vue b/src/views/portal/course/Index.vue index fef65e3e..4a75dc06 100644 --- a/src/views/portal/course/Index.vue +++ b/src/views/portal/course/Index.vue @@ -310,55 +310,30 @@ - -
热点标签:
-
- + +
- 全部 + 全部
-
- {{tag.tagName}} + {{tag.tagName}}
@@ -2711,5 +2686,46 @@ a.custom2 { background-color: #387DF7 !important; color: white !important; } + +* 添加热点标签容器样式,支持换行 */ +.hot-tags-wrapper { + display: flex; + flex-wrap: wrap; + gap: 15px; + align-items: center; + padding-top: 2px; + margin-left: 90px; /* 为"热点标签:"文本留出空间 */ +} + +/* 调整option-item样式以适应换行布局 */ +.option-item { + position: relative; + cursor: pointer; + white-space: nowrap; +} + +/* 保持原有的导航底部横线样式 */ +.nav-bottbor { + position: absolute; + top: 130%; + left: 0; + width: 100%; + height: 4px; + background: #387DF7; + border-radius: 5px; +} + +/* 响应式调整,当屏幕较小时减小标签间距 */ +@media (max-width: 1600px) { + .hot-tags-wrapper { + gap: 10px; + } +} + +@media (max-width: 1400px) { + .hot-tags-wrapper { + gap: 5px; + } +} /* ---end--- */