|
|
- <div class="card h139-banner-card">
- <div class="h139-banner-cats h139-banner-desktop"><a href="https://www.h139.com/categories/ai-tools" class="h139-cat-link" target="_blank" rel="noopener noreferrer">AI工具</a> <span class="cat-sep">·</span> <a href="https://www.h139.com/categories/reading-creation" class="h139-cat-link" target="_blank" rel="noopener noreferrer">自媒体</a> <span class="cat-sep">·</span> <a href="https://www.h139.com/categories/news-media" class="h139-cat-link" target="_blank" rel="noopener noreferrer">新闻</a> <span class="cat-sep">·</span> <a href="https://www.h139.com/categories/watch-movies-online" class="h139-cat-link" target="_blank" rel="noopener noreferrer">影视</a> <span class="cat-sep">·</span> <a href="https://www.h139.com/categories/novel-reading" class="h139-cat-link" target="_blank" rel="noopener noreferrer">小说</a> <span class="cat-sep">·</span> <a href="https://www.h139.com/categories/music-radio" class="h139-cat-link" target="_blank" rel="noopener noreferrer">音乐</a> <span class="cat-sep">·</span> <a href="https://www.h139.com/categories/gaming-resources" class="h139-cat-link" target="_blank" rel="noopener noreferrer">游戏</a> <span class="cat-sep">·</span> <a href="https://www.h139.com/categories/exam-signup" class="h139-cat-link" target="_blank" rel="noopener noreferrer">考试</a> <span class="cat-sep">·</span> <a href="https://www.h139.com/categories/government-services" class="h139-cat-link" target="_blank" rel="noopener noreferrer">政务</a> <span class="cat-sep">·</span> <a href="https://www.h139.com/categories/ecommerce-operations" class="h139-cat-link" target="_blank" rel="noopener noreferrer">购物</a> <span class="cat-sep">·</span> <a href="https://www.h139.com/categories/job-recruitment" class="h139-cat-link" target="_blank" rel="noopener noreferrer">求职</a> <span class="cat-sep">·</span> <a href="https://www.h139.com/categories/tv-live" class="h139-cat-link" target="_blank" rel="noopener noreferrer">电视</a> <span class="cat-sep">·</span> <a href="https://www.h139.com/categories/sports-events" class="h139-cat-link" target="_blank" rel="noopener noreferrer">体育</a> <span class="cat-sep">·</span> <a href="https://www.h139.com/categories/finance-securities" class="h139-cat-link" target="_blank" rel="noopener noreferrer">财经</a> <span class="cat-sep">·</span> <a href="https://www.h139.com/categories/webmail" class="h139-cat-link" target="_blank" rel="noopener noreferrer">邮箱</a> <span class="cat-sep">·</span> <a href="https://www.h139.com/categories/education-exam" class="h139-cat-link" target="_blank" rel="noopener noreferrer">教育</a> <span class="cat-sep">·</span> <a href="https://www.h139.com/categories/daily-office" class="h139-cat-link" target="_blank" rel="noopener noreferrer">办公</a> <span class="cat-sep">·</span> <a href="https://www.h139.com/categories/image-resources" class="h139-cat-link" target="_blank" rel="noopener noreferrer">素材</a> <span class="cat-sep">·</span> <a href="https://www.h139.com/categories/wallpapers" class="h139-cat-link" target="_blank" rel="noopener noreferrer">壁纸</a> <span class="cat-sep">·</span> <a href="https://www.h139.com/categories/tech-digital" class="h139-cat-link" target="_blank" rel="noopener noreferrer">数码</a> <span class="cat-sep">·</span> <a href="https://www.h139.com/categories/travel-trip" class="h139-cat-link" target="_blank" rel="noopener noreferrer">旅游</a> <span class="cat-sep">·</span> <a href="https://www.h139.com/categories/cars-motorcycles" class="h139-cat-link" target="_blank" rel="noopener noreferrer">汽车</a> <span class="cat-sep">·</span> <a href="https://www.h139.com/categories/real-estate" class="h139-cat-link" target="_blank" rel="noopener noreferrer">房产</a> <span class="cat-sep">·</span> <a href="https://xiazai.zol.com.cn/" class="h139-cat-link" target="_blank" rel="noopener noreferrer">下载</a> <span class="cat-sep">·</span> <a href="https://www.h139.com/categories/anime-comics" class="h139-cat-link" target="_blank" rel="noopener noreferrer">动漫</a></div>
- </div>
- <style>
- *{
- box-sizing: border-box;
- margin:0;
- padding:0;
- }
- /* 外层卡片容器,圆角6px */
- .h139-banner-card{
- width:100%;
- border:1px solid #e8e8e8;
- border-radius:6px;
- background:#ffffff;
- overflow:hidden;
- }
- .h139-banner-cats {
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- /* 平铺拉伸,剩余空间自动均匀分布在元素之间 */
- justify-content: space-between;
- align-items: center;
- width: 100%;
- /* 左右内边距15px,满足文字距离边框15px */
- padding: 8px 15px;
- overflow-x: auto;
- overflow-y: hidden;
- -webkit-overflow-scrolling: touch;
- font-size: 14px;
- line-height: 1.8;
- min-height: 44px;
- }
- /*隐藏滚动条*/
- .h139-banner-cats::-webkit-scrollbar {
- display: none;
- }
- /*分类链接*/
- .h139-cat-link {
- position: relative;
- display: flex;
- align-items: center;
- flex-shrink: 0;
- color: #333;
- text-decoration: none;
- font-size: 14px;
- padding: 3px 8px;
- border-radius: 4px;
- z-index: 1;
- transition: color 0.3s ease;
- white-space: nowrap;
- }
- /*独立分隔圆点,参与flex布局,真正处在两个分类空隙的正中间,垂直居中*/
- .cat-sep{
- flex-shrink:0;
- font-size:16px;
- line-height:1;
- opacity:0.75;
- color:#333;
- user-select:none;
- }
- /*hover背景动画*/
- .h139-cat-link::before {
- content: "";
- position: absolute;
- inset: 0;
- background-color: var(--theme-color,#4080ff);
- border-radius: 4px;
- z-index: -1;
- transform: scaleY(0);
- transform-origin: center center;
- transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
- }
- .h139-cat-link:hover::before {
- transform: scaleY(1);
- }
- .h139-cat-link:hover {
- color: #ffffff;
- }
- </style>
复制代码 |
|