JavaScript如何实现钟表效果,时分秒针指向当前时间,并显示当前年月日,及2024春节倒计时,源码奉上

 本篇有运用jQuery,记得引入jQuery库,否则不会执行的喔~

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<meta name="chenc" content="Runoob">
<meta name="description" content="时钟 时间 & 钟表 日历">
<meta name="viewport" content="width=device-width, initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" type="text/css" href="css/style.css">
<script src="js/jquery-3.6.0.js"></script>
<script src="js/app.js"></script></head>
<body><div class="today"><div class="clock"><div class="pos SS"></div><div class="pos MM"></div><div class="pos HH"></div><div class="spot"></div></div></div>
</body>
</html>
*{margin: 0 auto;padding: 0;}
html,body{background: #eeeeed;font-size: 14px;color: white!important;}
/* html,body{background-color:#a018d3;background-repeat: repeat-y;background-image: -moz-linear-gradient(left,#a018d3,#fe30ae);background-image: -webkit-linear-gradient(left,#a018d3,#fe30ae);background-image: -o-linear-gradient(left,#a018d3,#fe30ae);background-image: linear-gradient(left,#a018d3,#fe30ae);position: relative;overflow-x: hidden;
} */
@font-face {font-family:impact;src:url(https://misc.360buyimg.com/mtd/pc/index_2019/1.0.0/fonts/a07974d9a45376b8441d90005764beb0.eot);src:url(https://misc.360buyimg.com/mtd/pc/index_2019/1.0.0/fonts/a07974d9a45376b8441d90005764beb0.eot#iefix) format("embedded-opentype"),url(https://misc.360buyimg.com/mtd/pc/index_2019/1.0.0/fonts/b07c9855bd807ccc9d825cb0392c6ef8.woff) format("woff"),url(https://misc.360buyimg.com/mtd/pc/index_2019/1.0.0/fonts/1a0d82dfb49fff2d2a291d3dbce6c95c.ttf) format("truetype"),url(https://misc.360buyimg.com/mtd/pc/index_2019/1.0.0/fonts/d1e37bdd079d3151cc0edcc71d2c8f0f.svg) format("svg");font-weight:400;font-style:normal}
@font-face {font-family:DINBold;src:url(../fonts/dinbold-webfont.bc8aa63.woff);font-weight:400;font-style:normal
}
@font-face {font-family:DINBold;src:url(../fonts/DIN-Bold_0.otf);font-weight:400;font-style:normal
}
@font-face {font-family:DINBold;src:url(https://jddx.jd.com/finance/index/3.0.0/static/fonts/dinbold-webfont.bc8aa63.woff);font-weight:400;font-style:normal
}
.today {width: 100%;height: auto;margin: 0 auto;text-align: center;padding: 20px;box-sizing: border-box;
}
.today p{margin: 20px auto;
}
.clock {position: relative;width: 300px;height: 300px;margin: 20px auto 0px;text-align: center;background: white;border-radius: 50%;border: 12px solid #590d75;box-shadow: inset 0px 0px 20px 2px rgba(89,13,117,.6);
}
.clock ol {list-style-type: none;width: 100%;height: 100%;position: relative;margin: 0;padding: 0;transform: scale(0.96);
}
.clock ol li::before {font-family: Helvetica;content: counter(labelCounter) "";
}
.clock ol li {counter-increment: labelCounter;position: absolute;font-size: 1.5em;color: #7d13a5;
}
.clock ol li:nth-child(1){right:73px;top:21px}
.clock ol li:nth-child(2){right:29px;top:64px}
.clock ol li:nth-child(3){right:12px;top:123px}
.clock ol li:nth-child(4){right:31px;bottom:64px}
.clock ol li:nth-child(5){right:73px;bottom:21px}
.clock ol li:nth-child(6){left:132px;bottom:5px}
.clock ol li:nth-child(7){left:73px;bottom:21px}
.clock ol li:nth-child(8){left:31px;bottom:65px}
.clock ol li:nth-child(9){left:12px;top:123px;}
.clock ol li:nth-child(10){left:27px;top:64px}
.clock ol li:nth-child(11){left:69px;top:22px}
.clock ol li:nth-child(12){left:126px; top:5px;}
.spot {position: absolute;top: 0;bottom: 0;left: 0;right: 0;margin: auto;width: 30px;height: 30px;/* background: #DD2476; */border-radius: 50%;z-index: 5;
}
.HH {position: absolute;top: 0;bottom: 0;left: 0;right: 0;margin: auto;width: 13px;height: 13px;border-radius: 7px;transform: rotate(0deg);z-index: 97;background: #4e0b66;opacity: 0.8;
}
.HH::before {width: 10px;height: 65px;border-radius: 5px;background: #4e0b66;position: absolute;bottom: -10px;left: 50%;transform: translate(-50%,0);
}
.MM {position: absolute;top: 0;bottom: 0;left: 0;right: 0;margin: auto;width: 13px;height: 13px;border-radius: 7px;transform: rotate(0deg);z-index: 98;background: #7d13a5;opacity: 0.8;
}
.MM:before {width: 6px;height: 95px;border-radius: 4px;background: #7d13a5;position: absolute;bottom: -10px;left: 50%;transform: translate(-50%,0);
}
.SS {position: absolute;top: 0;bottom: 0;left: 0;right: 0;margin: auto;width: 13px;height: 13px;border-radius: 7px;transform: rotate(0deg);z-index: 99;background: #fe30ae;opacity: 0.8;
}
.SS:before {width: 2px;height: 135px;border-radius: 4px;background: #fe30ae;position: absolute;bottom: -20px;left: 50%;transform: translate(-50%,0);box-shadow: 2px 0px 5px rgba(174, 28, 92,.5);
}
.HH::after, .HH::before,
.MM::after, .MM::before,
.SS::after, .SS::before {content: "";display: block;position: absolute;
}
.day {margin: 10px auto 20px;text-align: left;font-size: 24px;font-family: DINBold;font-weight: lighter;width: 145px;
}
.time span,
.day span {/* font-weight: bold; */margin: 0px 2px;font-family: DINBold;font-weight: lighter;font-size: 24px;vertical-align: middle;
}
.time p{vertical-align: middle;
}
.time p:nth-child(1){font-size: 20px;
}
.time p span{font-family: DINBold;font-weight: lighter;font-size: 36px;
}
.sydate,
.time{color: yellow;vertical-align: middle;
}
.sydate{margin: 10px auto;
}
.sydate span{font-family: DINBold;font-weight: lighter;margin: 0px 2px;
}
.date {position: absolute;top: 65px;left: 0;right: 0;color: #590d75;text-align: center;font-size: 15px;
}
.times {position: absolute;bottom: 65px;left: 0;right: 0;color: #590d75;text-align: left;font-size: 16px;width: 100px;
}
.times span,
.date span{margin: 0px 2px;	color: #b21beb;font-family: DINBold;font-weight: lighter;
}
.week {position: absolute;top: 125px;right: 40px;color: #7d13a5;text-align: center;/* border: 1px solid #7d13a5; */width: 52px;height: 22px;line-height: 21px;font-size: 12px;z-index: 0;box-shadow: inset 0px 0px 10px 1px rgba(89,13,117,.3);
}
.year {position: absolute;top: 80px;left: 0;right: 0;color: #590d75;text-align: center;font-size: 80px;font-family: impact;opacity: 0.08;z-index: 1;
}@-webkit-keyframes rotateOutDownLeft {0% {transform-origin: left bottom;opacity: 1}0%,to {-webkit-transform-origin: left bottom}to {transform-origin: left bottom;-webkit-transform: rotate(45deg) translateY(20px);transform: rotate(45deg) translateY(20px);opacity: 0}
}@keyframes rotateOutDownLeft {0% {transform-origin: left bottom;opacity: 1}0%,to {-webkit-transform-origin: left bottom}to {transform-origin: left bottom;-webkit-transform: rotate(45deg) translateY(20px);transform: rotate(45deg) translateY(20px);opacity: 0}
}.Lose{display: -webkit-inline-box;animation: rotateOutDownLeft 1000ms infinite;-webkit-animation: rotateOutDownLeft 1000ms infinite; /* Safari 与 Chrome */
}
.Barrage {position: absolute;width: 100%;height: 380px;margin: 0 auto;top: 0;left: 0;right: 0;z-index: 99;
}
.message {width: 60%;height: 50px;border-radius: 25px;text-align: center;line-height: 48px;font-size: 15px;cursor: pointer;background: rgba(89,13,117,.25);/* background-color: #a018d3;background-repeat: repeat-y;background-image: -moz-linear-gradient(0deg,rgba(254,48,174,.5),rgba(160,24,211,.5));background-image: -webkit-linear-gradient(0deg,rgba(254,48,174,.5),rgba(160,24,211,.5));background-image: -o-linear-gradient(0deg,rgba(254,48,174,.5),rgba(160,24,211,.5));background-image: linear-gradient(0deg,rgba(254,48,174,.5),rgba(160,24,211,.5)); */
}.key {position: fixed;width: 100%;height: 200px;padding: 40px 20px 20px 20px;box-sizing: border-box;background: white;z-index: 20;bottom: -400px;border-radius: 20px 20px 0px 0px;transition: all 300ms;
}
.keys{bottom: 0px;animation: keys 300ms ease;-webkit-animation: keys 300ms ease; /* Safari 与 Chrome */
}
@-webkit-keyframes keys {0% {transform: translateY(400px);}100% {transform: translateY(0px);}
}
@keyframes keys {0% {transform: translateY(400px);}100% {transform: translateY(0px);}
}.van-field__control {display: block;box-sizing: border-box;width: 100%;min-width: 0;margin: 0;padding: 0;color: #323233;text-align: left;background-color: transparent;border: 0;resize: none;min-height: 100px;font-size: 16px;
}
.buts {width: 80%;height: 42px;background-color: #a018d3;background-repeat: repeat-y;background-image: -moz-linear-gradient(left,#a018d3,#fe30ae);background-image: -webkit-linear-gradient(left,#a018d3,#fe30ae);background-image: -o-linear-gradient(left,#a018d3,#fe30ae);background-image: linear-gradient(left,#a018d3,#fe30ae);border-radius: 21px;line-height: 42px;text-align: center;font-size: 16px;cursor: pointer;
}
.iocnBox {position: absolute;width: 100%;height: 40px;top: 0;left: 0;right: 0;margin: auto;color: #333;text-align: right;padding-right: 20px;line-height: 40px;cursor: pointer;
}
.iocnBox i {font-size: 18px;color: #909399;
}
.remove{animation-fill-mode: forwards;animation: remove 300ms ease;-webkit-animation: remove 300ms ease; /* Safari 与 Chrome */
}
@-webkit-keyframes remove {0% {transform: translateY(0px);}100% {transform: translateY(400px);}
}
@keyframes remove {0% {transform: translateY(0px);}100% {transform: translateY(400px);}
}.Barrage span {position: absolute;background: rgba(89,13,117,.25);color: white;display: initial;padding: 0px 15px;box-sizing: border-box;border-radius: 20px;line-height: 35px;animation: Barrag 10s linear infinite;-webkit-animation: Barrag 10s linear infinite;top: 60px;white-space: nowrap;font-size: 12px;
}
@keyframes Barrag
{0% {right: -200px;opacity: 1;}80% {right: 1120px;opacity: 1;}100% {right: 1400px;opacity: 0;}
}@-webkit-keyframes Barrag /* Safari 与 Chrome */
{0% {right: -200px;opacity: 1;}80% {right: 1120px;opacity: 1;}100% {right: 1400px;opacity: 0;}
}
.Barrage span:nth-child(2):before,
.Barrage span:nth-child(1):before{content:"";width: 24px;height: 24px;margin-right: 5px;background:url(../images/bq001.png) no-repeat;background-size: 24px 24px;background-position: center bottom;display: inline-block;vertical-align: middle;
}
.Barrage span:nth-child(2):after,
.Barrage span:nth-child(1):after{content:"";width: 26px;height: 26px;margin-left: 5px;background:url(../images/bq002.gif) no-repeat;background-size: 26px auto;background-position: center bottom;display: inline-block;vertical-align: middle;
}
.B-span2{top: 100px!important;color: #ff0!important;animation: Barrag 6s linear infinite!important;-webkit-animation: Barrag 6s linear infinite!important;
}
.Barrage span:nth-child(3){top: 140px!important;color: #0dd2ef!important;animation: Barrag 12.8s linear infinite!important;-webkit-animation: Barrag 12.8s linear infinite!important;
}
.Barrage span:nth-child(4){top: 160px!important;color: #ff0!important;animation: Barrag 10s linear infinite!important;-webkit-animation: Barrag 10s linear infinite!important;
}
.Barrage span:nth-child(5){top: 190px!important;color: #3fd316!important;animation: Barrag 17.5s linear infinite!important;-webkit-animation: Barrag 17.5s linear infinite!important;
}
.Barrage span:nth-child(6){top: 100px!important;color: #ff0!important;animation: Barrag 20s linear infinite!important;-webkit-animation: Barrag 20s linear infinite!important;
}
.Barrage span:nth-child(7){top: 120px!important;color: #0dd2ef!important;animation: Barrag 15s linear infinite!important;-webkit-animation: Barrag 15s linear infinite!important;
}
.Barrage span:nth-child(8){top: 200px!important;color: #ff0!important;animation: Barrag 16s linear infinite!important;-webkit-animation: Barrag 16s linear infinite!important;
}
.Barrage span:nth-child(9){top: 80px!important;color: #3fd316!important;animation: Barrag 8s linear infinite!important;-webkit-animation: Barrag 8s linear infinite!important;
}
@keyframes Barragss
{0% {right: 0px;opacity: 1;}80% {right: 1120px;opacity: 1;}100% {right: 1400px;opacity: 0;}
}@-webkit-keyframes Barragss /* Safari 与 Chrome */
{0% {right: 0px;opacity: 1;}80% {right: 1120px;opacity: 1;}100% {right: 1400px;opacity: 0;}
}.Tips {background: rgba(0,0,0,.6);position: fixed;top: 0;bottom: 0;left: 0;right: 0;margin: auto;width: 120px;height: 45px;border-radius: 4px;line-height: 45px;text-align: center;
}.empty {position: absolute;width: 40px;height: 30px;top: 38px;right: 15px;margin: auto;color: red;text-align: center;line-height: 30px;cursor: pointer;opacity: 0;
}
.Tipss{background: rgba(0,0,0,.6);position: fixed;top: 0;bottom: 0;left: 0;right: 0;margin: auto;width: 200px;height: 45px;border-radius: 4px;line-height: 45px;text-align: center;
}
.music {width: 270px;margin: 30px auto;height: 45px;
}
.music audio {background: none;width: 100%;height: 100%;
}
.music marquee {font-size: 13px;color: yellow;margin-top: 5px;
}

$(document).ready(function(){   //加入时钟数字元素 var list = "<li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li>";var ool = "<ol>" + list + "</ol>";$(".spot").after(ool);//显示日期var date = "<div class='date'></div>";$(".spot").before(date);//显示星期var week = "<div class='week'></div>";$(".date").before(week);//显示年度var year = "<div class='year'></div>";$(".date").before(year);//显示时间var times = "<div class='times'></div>";$(".date").before(times);// 春节倒计时var starttime = new Date("2024/1/10");setInterval(function () {var nowtime = new Date();var time = starttime - nowtime;var day = parseInt(time / 1000 / 60 / 60 / 24);var hour = parseInt(time / 1000 / 60 / 60 % 24);var minute = parseInt(time / 1000 / 60 % 60);var seconds = parseInt(time / 1000 % 60);var syday = "<span>" + hour + "</span>" + "小时" + "<span>" + minute + "</span>" + "分钟" + "<span class='Lose'>" + seconds + "</span>" + "秒";$('.time').html("<p>春节倒计时</p>" + "<p><span>" + day + "</span>" + "天</p>");$(".sydate").html(syday);}, 1000);// 时钟走字方法function Todayss(){var day = new Date();  //日期var Y = day.getFullYear();  //年var M = day.getMonth() + 1;  //月var D = day.getDate();  //日var U = day.getUTCDay();  //周var H = day.getHours();  //时var MIN = day.getMinutes();  //分var S = day.getSeconds();  //秒var MSs = day.getMilliseconds();var MS = MSs.toString().substring(0,2);// 计算指针度数var sss = S * 6,mmm = MIN * 6 + (sss * 0.01),hhh = (H * 30) + (MIN * 0.5);var rotss = "rotate(" + sss + "deg)"; var rotmm = "rotate(" + mmm + "deg)";var rothh = "rotate(" + hhh + "deg)";$(".HH").css({"transform":rothh});$(".MM").css({"transform":rotmm});$(".SS").css({"transform":rotss});            // 小于两位数,保持两位if(M < 10){M = "0" + M;};if(D < 10){D = "0" + D;};if(H < 10){H = "0" + H;};if(MIN < 10){MIN = "0" + MIN;};if(S < 10){S = "0" + S;};  switch (U){case 0:U="星期日";break;case 1:U="星期一";break;case 2:U="星期二";break;case 3:U="星期三";break;case 4:U="星期四";break;case 5:U="星期五";break;case 6:U="星期六";break;};//星期赋值var week = U;$(".week").html(week);//年份赋值var year = Y;$(".year").html(year);//日期赋值var date = "<span>" + M + "</span>" + "月" + "<span>" + D + "</span>" + "日";$(".date").html(date);//时间赋值var times = "<span>" + H + "</span>" + ":" + "" + "<span>" + MIN + "</span>" + ":" + "" + "<span>" + S + "</span>" + ":" + "" + "<span>" + MS + "</span>";$(".times").html(times);}// Todayss();setInterval(Todayss, 10);});

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/170980.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

element-ui表格无法横向拖动问题

是不是用到了fixed // 因为我只有在小屏显示不下的时候才会出现这个问题所以我在这里做了适配(建议把样式放在全局) media screen and (max-width: 1800px) {// 由于使用了fixed导致横向条无法拖动出现bug.Table-page .el-table__fixed {height: auto !important;bottom: 2px …

计算机编程基础教程,中文编程工具下载,编程构件组合按钮

计算机编程基础教程&#xff0c;中文编程工具下载&#xff0c;编程构件组合按钮 给大家分享一款中文编程工具&#xff0c;零基础轻松学编程&#xff0c;不需英语基础&#xff0c;编程工具可下载。 这款工具不但可以连接部分硬件&#xff0c;而且可以开发大型的软件&#xff0c…

开卷翻到毒蘑菇?浅谈大模型检索增强(RAG)的鲁棒性

©PaperWeekly 原创 作者 | 陈思硕 单位 | 北京大学 研究方向 | 自然语言处理 很久没有写论文 notes 了&#xff0c;近期因为参与对检索增强生成&#xff08;Retrieval-Augmented Generation, RAG&#xff09;范式鲁棒性的研究&#xff0c;注意到了近两个月来社区中涌现了…

Java核心知识点整理大全15-笔记

Java核心知识点整理大全-笔记_希斯奎的博客-CSDN博客 Java核心知识点整理大全2-笔记_希斯奎的博客-CSDN博客 Java核心知识点整理大全3-笔记_希斯奎的博客-CSDN博客 Java核心知识点整理大全4-笔记-CSDN博客 Java核心知识点整理大全5-笔记-CSDN博客 Java核心知识点整理大全6…

【Kotlin】类与接口

文章目录 类的定义创建类的实例构造函数主构造函数次构造函数init语句块 数据类的定义数据类定义了componentN方法 继承AnyAny&#xff1a;非空类型的根类型Any?&#xff1a;所有类型的根类型 覆盖方法覆盖属性覆盖 抽象类接口:使用interface关键字函数&#xff1a;funUnit:让…

RocketMq 队列(MessageQueue)

RocketMq是阿里出品&#xff08;基于MetaQ&#xff09;的开源中间件&#xff0c;已捐赠给Apache基金会并成为Apache的顶级项目。基于java语言实现&#xff0c;十万级数据吞吐量&#xff0c;ms级处理速度&#xff0c;分布式架构&#xff0c;功能强大&#xff0c;扩展性强。 官方…

Kerberos 高可用配置和验证

参考 https://cloud.tencent.com/developer/article/1078314 https://mp.weixin.qq.com/s?__bizMzI4OTY3MTUyNg&mid2247485861&idx1&snbb930a497f63ac5e63ed20c64643eec5 机器准备 Kerberos主 ip-172-31-22-86.ap-southeast-1.compute.internal 7.common2.hado…

【华为数通HCIP | 网络工程师】821-IGP高频题、易错题之OSPF(7)

个人名片&#xff1a; &#x1f43c;作者简介&#xff1a;一名大三在校生&#xff0c;喜欢AI编程&#x1f38b; &#x1f43b;‍❄️个人主页&#x1f947;&#xff1a;落798. &#x1f43c;个人WeChat&#xff1a;hmmwx53 &#x1f54a;️系列专栏&#xff1a;&#x1f5bc;️…

C语言盐水的故事(ZZULIOJ1214:盐水的故事)

题目描述 挂盐水的时候&#xff0c;如果滴起来有规律&#xff0c;先是滴一滴&#xff0c;停一下&#xff1b;然后滴二滴&#xff0c;停一 下&#xff1b;再滴三滴&#xff0c;停一下...&#xff0c;现在有一个问题&#xff1a;这瓶盐水一共有VUL毫升&#xff0c;每一滴是D毫升&…

【brpc学习实践八】bvar及其应用

什么是bvar bvar是多线程环境下的计数器类库&#xff0c;支持单维度bvar和多维度mbvar&#xff0c;方便记录和查看用户程序中的各类数值&#xff0c;它利用了thread local存储减少了cache bouncing&#xff0c;相比UbMonitor(百度内的老计数器库)几乎不会给程序增加性能开销&a…

STM32 SCF文件

文章目录 1 SCF文件2 SCT分散加载文件3 SCF文件编写 1 SCF文件 keil编译器在链接的时候&#xff0c;是根据分散加载(.scf后缀的文件)来确定程序的加载域和运行域的。 加载域就是程序运行前在flash中具体分区情况执行域就是程序运行后&#xff0c;程序在flash和ram中的分区情况…

在Windows系统上安装git-Git的过程记录

01-上git的官网下载git的windows安装版本 下载页面链接&#xff1a; https://git-scm.com/downloads 选择Standalone Installer的版本进行下载&#xff1a; 这里给大家一全git-2.43.0的百度网盘下载链接&#xff1a; https://pan.baidu.com/s/11HwNTCZmtSWj0VG2x60HIA?pwdut…

Linux 基础-常用的命令和搭建 Java 部署环境

文章目录 目录相关查看目录中的内容查看目录当前的完整路径切换目录 文件相关创建文件查看文件内容写文件vim 基础 创建删除创建目录 移动和复制移动(剪切粘贴)复制(复制粘贴) 搭建 Java 部署环境1. 安装 jdk2. 安装 tomcat1). 我们在自己电脑上下好 tomcat2). 从官网下载的 .z…

MySQL的基础知识

目录 关系型数据库 SQL通用语法 数据类型 数值类型 字符串类型 日期类型 SQL分类 DDL 数据库操作 表操作 DML 添加数据 修改数据 删除数据 DQL 基本查询 条件查询 聚合函数 分组查询 排序查询 分页查询 执行顺序 DCL 管理用户 权限控制 函数 字符串…

iar如何全擦芯片内存

Project ->Download -> Erase memory

js逆向-某敏感网站登录参数分析

声明 本文仅供学习参考&#xff0c;如有侵权可私信本人删除&#xff0c;请勿用于其他途径&#xff0c;违者后果自负&#xff01; 如果觉得文章对你有所帮助&#xff0c;可以给博主点击关注和收藏哦&#xff01; 前言 目标网站&#xff1a;aHR0cHM6Ly9tZGZnaGcuNXhwb2lqaHRm…

五种多目标优化算法(MSSA、MOAHA、MOPSO、NSGA3、NSGA2)求解微电网多目标优化调度(MATLAB)

一、多目标优化算法简介 &#xff08;1&#xff09;多目标鳟海鞘算法MSSA 多目标优化算法&#xff1a;多目标鳟海鞘算法&#xff08;Multi-objective Salp Swarm Algorithm &#xff0c;MSSA&#xff09;-CSDN博客 参考文献&#xff1a; S. Mirjalili, A.H. Gandomi, S.Z. M…

flex布局实战之自动填充剩余

案例目标 文字部分自适应并且居中 图中是一个弹窗&#xff0c;我现在使用flex的布局来实现&#xff0c;标题和关闭按钮。因为是uni-app,所以标签是view 。你可以自行替换为 代码 <view class"popup-box"><view class"title"><view class&…

线程的状态以及状态转移

一. 线程的状态 NEW: 线程刚被创建, 但是并未启动. 还没调用start方法.RUNNABLE: 这里没有区分就绪和运行状态. 因为对于Java对象来说, 只能标记为可运行, 至于什么时候运行, 不是JVM来控制的了, 是OS来进行调度的, 而且时间非常短暂, 因此对于Java对象的状态来说, 无法区分.T…

97、Text2NeRF: Text-Driven 3D Scene Generation with Neural Radiance Fields

简介 论文地址 使用扩散模型来推断文本相关图像作为内容先验&#xff0c;并使用单目深度估计方法来提供几何先验&#xff0c;并引入了一种渐进的场景绘制和更新策略&#xff0c;保证不同视图之间纹理和几何的一致性 实现流程 简单而言&#xff1a; 文本-图片扩散模型生成一…