未登录
中文(中国大陆)
创建账号
登录
SOKA CAFE
搜索
查看“测试”的源代码
来自SOKA CAFE
命名空间
页面
讨论
更多
更多
页面操作
阅读
查看源代码
历史
←
测试
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您必须确认您的电子邮件地址才能编辑页面。请通过
参数设置
设置并确认您的电子邮件地址。
您可以查看和复制此页面的源代码。
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>B站视频卡片 · 修改版</title> <style> * { margin: 0; padding: 0; box-sizing: border-box; } body { background-color: #f5f7fa; padding: 20px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; display: flex; justify-content: center; } .video-card-container { width: 100%; max-width: 80vw; margin: 0 auto; } /* 平板及手机端调整 */ @media (max-width: 768px) { body { padding: 0; /* 手机端去掉body内边距,让容器真正最大宽度 */ } .video-card-container { max-width: 100%; padding: 0; /* 容器不留白 */ margin: 0; } } /* 卡片容器圆角统一为4px */ .video-card { background: white; border-radius: 4px; /* 原16px → 4px */ overflow: hidden; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); font-family: "Microsoft YaHei", sans-serif; } .bilibili-container { position: relative; width: 100%; padding-top: 56.25%; background: #000; border-radius: 4px 4px 0 0; /* 顶部圆角4px,底部为0,与卡片保持一致 */ overflow: hidden; } .bilibili-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; } .info-section { padding: 18px; word-break: break-word; overflow-wrap: break-word; } .user-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 8px 0; } .user-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #ff4d85, #ff8a50); display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 14px; flex-shrink: 0; } .username { font-size: 15px; font-weight: 600; color: #18191c; white-space: nowrap; } .detail-link { background: linear-gradient(120deg, #ff4d85, #ff6b6b); color: #ffffff !important; text-decoration: none; border-radius: 20px; padding: 5px 16px; font-size: 13px; font-weight: 500; display: inline-block; transition: all 0.2s; box-shadow: 0 2px 6px rgba(255, 77, 133, 0.3); -webkit-text-fill-color: #ffffff !important; text-fill-color: #ffffff !important; flex-shrink: 0; white-space: nowrap; } .detail-link:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(255, 77, 133, 0.4); } .title { font-size: 17px; font-weight: 700; color: #18191c; line-height: 1.5; margin-bottom: 10px; } .metadata { font-size: 12.5px; color: #8e8e93; margin-bottom: 14px; line-height: 1.6; } /* 标签组 */ .tags { display: flex; flex-wrap: wrap; gap: 8px; } /* 强制灰底黑字,任何状态不变 */ .tag { background: #f0f2f5 !important; /* 固定灰色背景 */ color: #000000 !important; /* 纯黑色文字 */ border-radius: 14px; padding: 3px 10px; font-size: 12px; white-space: nowrap; text-decoration: none; display: inline-block; transition: none; /* 去除任何过渡影响 */ } .tag:hover, .tag:active, .tag:focus, .tag:visited { background: #f0f2f5 !important; /* 悬停等状态背景不变 */ color: #000000 !important; /* 文字颜色不变 */ text-decoration: none; } .bottom-message { margin-top: 16px; font-size: 14px; color: #18191c; line-height: 1.5; } </style> </head> <body> <div class="video-card-container"> <div class="video-card"> <div class="bilibili-container"> <iframe src="https://player.bilibili.com/player.html?bvid=BV1eXSMYVEcc&page=1&autoplay=0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen> </iframe> </div> <div class="info-section"> <div class="user-info"> <div class="user-left"> <div class="avatar">H</div> <span class="username">H娘</span> </div> <a href="https://www.bilibili.com/video/BV1eXSMYVEcc" target="_blank" rel="noopener noreferrer" class="detail-link"> + 详情页 </a> </div> <div class="title">【创价】久本五月病 【久本信仰祭16】</div> <div class="metadata"> sm16495736 • 2016年5月3日 00:06 (UTC+9) </div> <div class="tags"> <a href="/wiki/宗教都市祭" class="tag">宗教都市祭</a> <a href="/wiki/久本投稿祭'25" class="tag">久本投稿祭'25</a> <a href="/wiki/エア本" class="tag">エア本</a> </div> <!-- 原底部无内容,保留结构预留 --> </div> </div> </div> </div> </body> </html>
返回
测试
。
导航
导航
首页
最近更改
随机页面
知识集锦
活动公告
讨论版块
档案区
人物图鉴
团体势力
地点区域
登场作品
历史事件
创作区
词典概念
作品推荐
世界设定
创作作者
创作团体
编辑帮助
查找页面
入站须知
测试页面
任务计划
官方教程
wiki工具
wiki工具
特殊页面
页面工具
页面工具
用户页面工具
更多
链入页面
相关更改
页面信息
页面日志