<> .carousel-container { position: relative; width: 99%; overflow: hidden; margin: 10px 0; } .carousel-track { display: flex; transition: transform 0.5s ease; } .carousel-item { flex: 0 0 auto; width: calc((100% - 20px) / 3); /* PC端显示3个 */ margin-right: 10px; position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); } .image-container { position: relative; width: 100%; padding-top: 56.25%; /* 16:9宽高比容器 */ overflow: hidden; display: flex; justify-content: center; align-items: center; background-color: #2b2b2b ; /* 添加背景色以防图片加载不全#f0f0f0 */ } .carousel-item img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: fill; /* contain:完整显示内容但可能留白 fill:拉伸填满(不保持比例)none:保持原始尺寸 scale-down:自动选择 none 或 contain 中较小的显示方式*/ display: block; min-width: 100%; min-height: 100%; max-width: 100%; max-height: 100%; } .carousel-caption { position: absolute; bottom: 0; left: 0; right: 0; /*background: rgba(0,0,0,0.7);*/ background: linear-gradient(transparent,rgba(0,0,0,0.5),rgba(0,0,0,0.7),rgba(0,0,0,0.9)); color: white; padding: 5px 10px; font-size: 16px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 10; transition: background 0.3s; } .carousel-nav:hover { background: rgba(0,0,0,0.8); } .carousel-nav.prev { left: 15px; } .carousel-nav.next { right: 15px; } /* 移动端适配 */ @media (max-width: 768px) { .carousel-item { width: calc(100% - 10px); /* 移动端显示1个 */ } .carousel-nav { width: 30px; height: 30px; font-size: 12px; } } /* 确保图片不会拉伸变形 */ .carousel-item a { display: block; width: 100%; height: 100%; } .fa-spinner { animation: fa-spin 2s infinite linear; /* 调整时长 */ } @keyframes fa-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } <> .responsive-text { font-size: 0vw; /* 基础使用视口单位 */ background: linear-gradient(45deg#ff3366#ff9933); -webkit-background-clip: text; background-clip: text; color: transparent; text-align: center; transition: font-size 0.3s ease; } @media (max-width: 768px) { .responsive-text { font-size: 4vw; /* 小屏幕增大比例 */ } } @media (max-width: 480px) { .responsive-text { font-size: 3vw; /* 小屏幕增大比例 */ } }

央视节目预览

直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中

卫视节目预览

直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中
直播中

友情链接