10条提现记录(显示3条·循环滚动) * { margin: 0; padding: 0; box-sizing: border-box; } body { display: flex; justify-content: center; align-items: center; min-height: 100vh; background-color: #f5f7fa; font-family: "Microsoft YaHei", sans-serif; } /* 提现容器:限定可视区域为3条记录高度,隐藏超出部分 */ .withdraw-container { width: 380px; /* 可视高度:每条记录约60px,3条记录刚好显示,预留少量间距 */ height: 180px; background-color: #ffffff; border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); padding: 20px; overflow: hidden; position: relative; } .container-title { font-size: 18px; font-weight: 600; color: #333333; margin-bottom: 16px; text-align: center; border-bottom: 1px solid #eeeeee; padding-bottom: 12px; } /* 滚动列表:用于承载10条记录,实现动画滚动 */ .withdraw-list { position: absolute; top: 70px; left: 20px; right: 20px; /* 滚动动画:15秒完成一次,匀速,无限循环(可调整15s改变速度) */ animation: scroll-up 15s linear infinite; } /* 单个提现记录:固定高度,保证3条记录刚好填满可视区域 */ .withdraw-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed #f0f0f0; font-size: 14px; height: 50px; } .user-name { color: #666666; font-weight: 400; } .withdraw-amount { color: #e63946; font-weight: 500; } /* 鼠标悬浮暂停滚动,方便查看详情 */ .withdraw-container:hover .withdraw-list { animation-play-state: paused; } /* 核心:向上循环滚动动画(适配10条记录) */ @keyframes scroll-up { 0% { transform: translateY(0); /* 初始位置 */ } 100% { /* 滚动至列表高度的100%(完整滚完10条记录),实现无缝循环 */ transform: translateY(-100%); } }

最新提现记录(10条·显示3条)

// 1. 辅助数据:常见姓氏、常见名字单字(生成合理姓名) const familyNames = ['赵', '钱', '孙', '李', '周', '吴', '郑', '王', '冯', '陈']; const givenNames = ['伟', '华', '明', '强', '丽', '静', '文', '杰', '军', '涛', '艳', '娜', '万', '芳', '兵']; // 2. 生成隐藏中间字的姓名(格式:姓+*+名,如李*万、张*丽) function generateHiddenName() { const familyName = familyNames[Math.floor(Math.random() * familyNames.length)]; const givenName = givenNames[Math.floor(Math.random() * givenNames.length)]; return `${familyName}*${givenName}`; } // 3. 生成100-2000元之间的随机金额(整数,附带"元"单位) function generateRandomAmount() { const amount = Math.floor(Math.random() * 1901) + 100; return `${amount}元`; } // 4. 生成10条提现记录并渲染到页面(实现显示3条、循环滚动) function renderWithdrawRecords() { const withdrawList = document.getElementById('withdrawList'); let recordsHtml = ''; // 循环生成10条记录(满足需求数量) for (let i = 0; i < 10; i++) { const name = generateHiddenName(); const amount = generateRandomAmount(); // 拼接单个记录的HTML结构 recordsHtml += `
提现姓名:${name} 金额:${amount}
`; } // 关键:复制一份记录HTML,实现无缝循环滚动(避免滚动到末尾出现空白) // 即使只有10条,拼接后滚动无断层,视觉效果更流畅 withdrawList.innerHTML = recordsHtml + recordsHtml; } // 5. 页面加载完成后执行渲染 window.onload = function() { renderWithdrawRecords(); };

#热门
公司简介长版本

公司概述 [vip]本公司诞生于美食教育行业转型升级的关键时期,以“专注美食教育创新”为核心定位,致力于通过系统化的烹饪…

测试0000

[vip]企业概况 四川礼渡合商贸有限公司成立于2025年4月,是一家专注于美食教育领域的创新型企业。公司以"让烹饪学习…

学霸君是怎么倒下的?

又一家明星创业公司,倒在了2020。 编者按:本文来自微信公众号“深燃”(ID:shenrancaijing),作者:深…

制造强国的“最后一公里”

014年,故宫“看门人”单霁翔果断叫停了已经启动12年的故宫百年大修。一年后单老近乎“哭诉”的解释了个中缘由:老工匠到了…

排行榜

查看更多
  • 0 +

    访问总数

  • 0 +

    会员总数

  • 0 +

    文章总数

  • 0 +

    今日发布

  • 0 +

    本周发布

  • 0 +

    运行天数

传承中华饮食文化 赋能家庭烹饪技能