DDR爱好者之家 Design By 杰米
html & js:
<html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>jQuery每日秒杀倒计时</title> <link rel="stylesheet" href="css/zzsc.css" rel="external nofollow" > </head> <body> <div class="se-kl"> <div class="se-cn">倒计时</div> <div class="se-en">COUNT DOWN</div> <i class="se-io"></i> <div class="se-info">距离结束还剩</div> <div class="se-count"> <div class="se-day"></div> <div class="se-hour"><span class="se-txt">00</span></div> <div class="se-min"><span class="se-txt">00</span></div> <div class="se-sec"><span class="se-txt">00</span></div> </div> </div> <script src="/UploadFiles/2021-04-02/jquery.min.js">(zzsc.cs) * { margin: 0; padding: 0; } .se-kl { width: 190px; height: 275px; background-color: #e83632; margin: 100px auto; position: relative; } .se-cn { position: absolute; top: 42px; left: 0; width: 100%; text-align: center; font-size: 34px; color: #fff; } .se-en { position: absolute; top: 90px; left: 0; width: 100%; text-align: center; font-size: 20px; color: rgba(255, 255, 255, 0.5); } .se-io { width: 20px; height: 33px; position: absolute; background: url(../imgs/seckill.png) no-repeat; background-position: -32.5px 0; background-size: 52.5px 40px; left: 85px; top: 126px; display: block; } .se-info { position: absolute; top: 170px; text-align: center; width: 100%; font-size: 16px; color: #fff; } .se-count { position: absolute; top: 212px; left: 30px; height: 40px; } .se-day { display: none; } .se-hour, .se-min, .se-sec { position: relative; background-color: #2f3430; width: 40px; height: 40px; float: left; text-align: center; line-height: 40px; margin-right: 5px; } .se-txt { font-size: 20px; font-weight: bold; color: #fff; } .se-txt:before { content: ""; display: block; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background-color: #e83632; }示例图1:
注:本程序依赖于jquery库,请自行下载并选择合适路径或使用远程cdn地址:
https://cdn.bootcss.com/jquery/3.4.1/jquery.js
总结
以上所述是小编给大家介绍的jQuery实现每日秒杀商品倒计时功能,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对网站的支持!
如果你觉得本文对你有帮助,欢迎转载,烦请注明出处,谢谢!
DDR爱好者之家 Design By 杰米
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
DDR爱好者之家 Design By 杰米
暂无评论...
更新日志
2024年04月19日
2024年04月19日
- 吴雨霏.2015-艳羡【环球】【WAV+CUE】
- 三盲鼠之声Threeblindmice24K金御碟一听钟情重磅出击WAV
- 【TopMusic发烧天碟-胆机必备维瓦尔第《四季】SACD极致录音效果镜像.
- 甄秀珍.1988-红唇一生【宝丽金】【WAV+CUE】
- 蔡依林.2014-呸【华纳】【WAV+CUE】
- 朱仪玲.1991-露珠儿(TP版)【瑞华】【WAV+CUE】
- 郭富城.1999-游园惊梦【华纳】【WAV+CUE】
- 蔡健雅《不够善良的我们 戏剧音乐设计专辑》[320K/MP3][95.77MB]
- 蔡健雅《不够善良的我们 戏剧音乐设计专辑》[FLAC/分轨][198.75MB]
- Beyond《光辉岁月Beyond精选》[WAV+CUE][480MB]
- 邰正宵1995-用情太深[香港][WAV+CUE]
- 薰妮1984-劲舞的女孩[香港永恒真存珍藏版][WAV+CUE]
- 薰妮1980-相逢有如梦中[香港永恒真存珍藏版][WAV+CUE]
- 吴俊宏.2012-无名的英雄【豪记】【WAV+CUE】
- 周国贤.2016-风起BreezeOut【维高文化】【FLAC分轨】