【css | loading】各种简单的loading特效

先看一下简单的效果图

 线上预览

https://code.juejin.cn/pen/7278511766991339579

代码

HTML

 <!-- / 1 --><section><div class="sk-rotating-plane"></div></section><!-- / 2 --><section><div class="sk-double-bounce"><div class="sk-child sk-double-bounce-1"></div><div class="sk-child sk-double-bounce-2"></div></div></section><!-- / 3 --><section><div class="sk-wave"><div class="sk-rect sk-rect-1"></div><div class="sk-rect sk-rect-2"></div><div class="sk-rect sk-rect-3"></div><div class="sk-rect sk-rect-4"></div><div class="sk-rect sk-rect-5"></div></div></section><!-- / 4 --><section><div class="sk-wandering-cubes"><div class="sk-cube sk-cube-1"></div><div class="sk-cube sk-cube-2"></div></div></section><!-- / 5 --><section><div class="sk-spinner sk-spinner-pulse"></div></section><!-- / 6 --><section><div class="sk-chasing-dots"><div class="sk-child sk-dot-1"></div><div class="sk-child sk-dot-2"></div></div></section><!-- / 7 --><section><div class="sk-three-bounce"><div class="sk-bounce-1 sk-child"></div><div class="sk-bounce-2 sk-child"></div><div class="sk-bounce-3 sk-child"></div></div></section><!-- / 8 --><section><div class="sk-circle-bounce"><div class="sk-child sk-circle-1"></div><div class="sk-child sk-circle-2"></div><div class="sk-child sk-circle-3"></div><div class="sk-child sk-circle-4"></div><div class="sk-child sk-circle-5"></div><div class="sk-child sk-circle-6"></div><div class="sk-child sk-circle-7"></div><div class="sk-child sk-circle-8"></div><div class="sk-child sk-circle-9"></div><div class="sk-child sk-circle-10"></div><div class="sk-child sk-circle-11"></div><div class="sk-child sk-circle-12"></div></div></section><!-- / 9 --><section><div class="sk-cube-grid"><div class="sk-cube sk-cube-1"></div><div class="sk-cube sk-cube-2"></div><div class="sk-cube sk-cube-3"></div><div class="sk-cube sk-cube-4"></div><div class="sk-cube sk-cube-5"></div><div class="sk-cube sk-cube-6"></div><div class="sk-cube sk-cube-7"></div><div class="sk-cube sk-cube-8"></div><div class="sk-cube sk-cube-9"></div></div></section><!-- / 10 --><section><div class="sk-fading-circle"><div class="sk-circle sk-circle-1"></div><div class="sk-circle sk-circle-2"></div><div class="sk-circle sk-circle-3"></div><div class="sk-circle sk-circle-4"></div><div class="sk-circle sk-circle-5"></div><div class="sk-circle sk-circle-6"></div><div class="sk-circle sk-circle-7"></div><div class="sk-circle sk-circle-8"></div><div class="sk-circle sk-circle-9"></div><div class="sk-circle sk-circle-10"></div><div class="sk-circle sk-circle-11"></div><div class="sk-circle sk-circle-12"></div></div></section><!-- / 11 --><section><div class="sk-folding-cube"><div class="sk-cube sk-cube-1"></div><div class="sk-cube sk-cube-2"></div><div class="sk-cube sk-cube-4"></div><div class="sk-cube sk-cube-3"></div></div></section><section></section>

 css

 body {background-color: rgba(0, 0, 0, 0.9);min-height: 95vh;display: flex;flex-wrap: wrap;justify-content: space-around;align-content: space-around;}section {flex: 1 1 25%;}.sk-rotating-plane {width: 4em;height: 4em;margin: auto;background-color: #337ab7;-webkit-animation: sk-rotating-plane 1.2s infinite ease-in-out;animation: sk-rotating-plane 1.2s infinite ease-in-out;}@-webkit-keyframes sk-rotating-plane {0% {-webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg);transform: perspective(120px) rotateX(0deg) rotateY(0deg);}50% {-webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);}100% {-webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);}}@keyframes sk-rotating-plane {0% {-webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg);transform: perspective(120px) rotateX(0deg) rotateY(0deg);}50% {-webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);}100% {-webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);}}.sk-double-bounce {width: 4em;height: 4em;position: relative;margin: auto;}.sk-double-bounce .sk-child {width: 100%;height: 100%;border-radius: 50%;background-color: #337ab7;opacity: 0.6;position: absolute;top: 0;left: 0;-webkit-animation: sk-double-bounce 2s infinite ease-in-out;animation: sk-double-bounce 2s infinite ease-in-out;}.sk-double-bounce .sk-double-bounce-2 {-webkit-animation-delay: -1s;animation-delay: -1s;}@-webkit-keyframes sk-double-bounce {0%,100% {-webkit-transform: scale(0);transform: scale(0);}50% {-webkit-transform: scale(1);transform: scale(1);}}@keyframes sk-double-bounce {0%,100% {-webkit-transform: scale(0);transform: scale(0);}50% {-webkit-transform: scale(1);transform: scale(1);}}.sk-wave {width: 6em;height: 4em;margin: auto;text-align: center;font-size: 1em;}.sk-wave .sk-rect {background-color: #337ab7;height: 100%;width: 0.5em;display: inline-block;-webkit-animation: sk-wave-stretch-delay 1.2s infinite ease-in-out;animation: sk-wave-stretch-delay 1.2s infinite ease-in-out;}.sk-wave .sk-rect-1 {-webkit-animation-delay: -1.2s;animation-delay: -1.2s;}.sk-wave .sk-rect-2 {-webkit-animation-delay: -1.1s;animation-delay: -1.1s;}.sk-wave .sk-rect-3 {-webkit-animation-delay: -1s;animation-delay: -1s;}.sk-wave .sk-rect-4 {-webkit-animation-delay: -0.9s;animation-delay: -0.9s;}.sk-wave .sk-rect-5 {-webkit-animation-delay: -0.8s;animation-delay: -0.8s;}@-webkit-keyframes sk-wave-stretch-delay {0%,40%,100% {-webkit-transform: scaleY(0.4);transform: scaleY(0.4);}20% {-webkit-transform: scaleY(1);transform: scaleY(1);}}@keyframes sk-wave-stretch-delay {0%,40%,100% {-webkit-transform: scaleY(0.4);transform: scaleY(0.4);}20% {-webkit-transform: scaleY(1);transform: scaleY(1);}}.sk-wandering-cubes {width: 4em;height: 4em;position: relative;margin: auto;}.sk-wandering-cubes .sk-cube {background-color: #337ab7;width: 1em;height: 1em;position: absolute;top: 0;left: 0;-webkit-animation: sk-wandering-cubes 1.8s ease-in-out -1.8s infinite both;animation: sk-wandering-cubes 1.8s ease-in-out -1.8s infinite both;}.sk-wandering-cubes .sk-cube-2 {-webkit-animation-delay: -0.9s;animation-delay: -0.9s;}@-webkit-keyframes sk-wandering-cubes {0% {-webkit-transform: rotate(0deg);transform: rotate(0deg);}25% {-webkit-transform: translateX(2em) rotate(-90deg) scale(0.5);transform: translateX(2em) rotate(-90deg) scale(0.5);}50% {/* Hack to make FF rotate in the right direction */-webkit-transform: translateX(2em) translateY(2em) rotate(-179deg);transform: translateX(2em) translateY(2em) rotate(-179deg);}50.1% {-webkit-transform: translateX(2em) translateY(2em) rotate(-180deg);transform: translateX(2em) translateY(2em) rotate(-180deg);}75% {-webkit-transform: translateX(0) translateY(2em) rotate(-270deg)scale(0.5);transform: translateX(0) translateY(2em) rotate(-270deg) scale(0.5);}100% {-webkit-transform: rotate(-360deg);transform: rotate(-360deg);}}@keyframes sk-wandering-cubes {0% {-webkit-transform: rotate(0deg);transform: rotate(0deg);}25% {-webkit-transform: translateX(2em) rotate(-90deg) scale(0.5);transform: translateX(2em) rotate(-90deg) scale(0.5);}50% {/* Hack to make FF rotate in the right direction */-webkit-transform: translateX(2em) translateY(2em) rotate(-179deg);transform: translateX(2em) translateY(2em) rotate(-179deg);}50.1% {-webkit-transform: translateX(2em) translateY(2em) rotate(-180deg);transform: translateX(2em) translateY(2em) rotate(-180deg);}75% {-webkit-transform: translateX(0) translateY(2em) rotate(-270deg)scale(0.5);transform: translateX(0) translateY(2em) rotate(-270deg) scale(0.5);}100% {-webkit-transform: rotate(-360deg);transform: rotate(-360deg);}}.sk-spinner-pulse {width: 4em;height: 4em;margin: auto;background-color: #337ab7;border-radius: 100%;-webkit-animation: sk-spinner-pulse 1s infinite ease-in-out;animation: sk-spinner-pulse 1s infinite ease-in-out;}@-webkit-keyframes sk-spinner-pulse {0% {-webkit-transform: scale(0);transform: scale(0);}100% {-webkit-transform: scale(1);transform: scale(1);opacity: 0;}}@keyframes sk-spinner-pulse {0% {-webkit-transform: scale(0);transform: scale(0);}100% {-webkit-transform: scale(1);transform: scale(1);opacity: 0;}}.sk-chasing-dots {width: 4em;height: 4em;position: relative;margin: auto;text-align: center;-webkit-animation: sk-chasing-dots-rotate 2s infinite linear;animation: sk-chasing-dots-rotate 2s infinite linear;}.sk-chasing-dots .sk-child {width: 2em;height: 2em;display: inline-block;position: absolute;top: 0;background-color: #337ab7;border-radius: 100%;-webkit-animation: sk-chasing-dots-bounce 2s infinite ease-in-out;animation: sk-chasing-dots-bounce 2s infinite ease-in-out;}.sk-chasing-dots .sk-dot-2 {top: auto;bottom: 0;-webkit-animation-delay: -1s;animation-delay: -1s;}@-webkit-keyframes sk-chasing-dots-rotate {100% {-webkit-transform: rotate(360deg);transform: rotate(360deg);}}@keyframes sk-chasing-dots-rotate {100% {-webkit-transform: rotate(360deg);transform: rotate(360deg);}}@-webkit-keyframes sk-chasing-dots-bounce {0%,100% {-webkit-transform: scale(0);transform: scale(0);}50% {-webkit-transform: scale(1);transform: scale(1);}}@keyframes sk-chasing-dots-bounce {0%,100% {-webkit-transform: scale(0);transform: scale(0);}50% {-webkit-transform: scale(1);transform: scale(1);}}.sk-three-bounce {width: 8em;margin: auto;text-align: center;}.sk-three-bounce .sk-child {width: 2em;height: 2em;background-color: #337ab7;border-radius: 100%;display: inline-block;-webkit-animation: sk-three-bounce 1.4s ease-in-out 0s infinite both;animation: sk-three-bounce 1.4s ease-in-out 0s infinite both;}.sk-three-bounce .sk-bounce-1 {-webkit-animation-delay: -0.32s;animation-delay: -0.32s;}.sk-three-bounce .sk-bounce-2 {-webkit-animation-delay: -0.16s;animation-delay: -0.16s;}@-webkit-keyframes sk-three-bounce {0%,80%,100% {-webkit-transform: scale(0);transform: scale(0);}40% {-webkit-transform: scale(1);transform: scale(1);}}@keyframes sk-three-bounce {0%,80%,100% {-webkit-transform: scale(0);transform: scale(0);}40% {-webkit-transform: scale(1);transform: scale(1);}}.sk-circle-bounce {width: 4em;height: 4em;position: relative;margin: auto;}.sk-circle-bounce .sk-child {width: 100%;height: 100%;position: absolute;left: 0;top: 0;}.sk-circle-bounce .sk-child:before {content: "";display: block;margin: 0 auto;width: 15%;height: 15%;background-color: #337ab7;border-radius: 100%;-webkit-animation: sk-circle-bounce-delay 1.2s infinite ease-in-out both;animation: sk-circle-bounce-delay 1.2s infinite ease-in-out both;}.sk-circle-bounce .sk-circle-2 {-webkit-transform: rotate(30deg);transform: rotate(30deg);}.sk-circle-bounce .sk-circle-3 {-webkit-transform: rotate(60deg);transform: rotate(60deg);}.sk-circle-bounce .sk-circle-4 {-webkit-transform: rotate(90deg);transform: rotate(90deg);}.sk-circle-bounce .sk-circle-5 {-webkit-transform: rotate(120deg);transform: rotate(120deg);}.sk-circle-bounce .sk-circle-6 {-webkit-transform: rotate(150deg);transform: rotate(150deg);}.sk-circle-bounce .sk-circle-7 {-webkit-transform: rotate(180deg);transform: rotate(180deg);}.sk-circle-bounce .sk-circle-8 {-webkit-transform: rotate(210deg);transform: rotate(210deg);}.sk-circle-bounce .sk-circle-9 {-webkit-transform: rotate(240deg);transform: rotate(240deg);}.sk-circle-bounce .sk-circle-10 {-webkit-transform: rotate(270deg);transform: rotate(270deg);}.sk-circle-bounce .sk-circle-11 {-webkit-transform: rotate(300deg);transform: rotate(300deg);}.sk-circle-bounce .sk-circle-12 {-webkit-transform: rotate(330deg);transform: rotate(330deg);}.sk-circle-bounce .sk-circle-2:before {-webkit-animation-delay: -1.1s;animation-delay: -1.1s;}.sk-circle-bounce .sk-circle-3:before {-webkit-animation-delay: -1s;animation-delay: -1s;}.sk-circle-bounce .sk-circle-4:before {-webkit-animation-delay: -0.9s;animation-delay: -0.9s;}.sk-circle-bounce .sk-circle-5:before {-webkit-animation-delay: -0.8s;animation-delay: -0.8s;}.sk-circle-bounce .sk-circle-6:before {-webkit-animation-delay: -0.7s;animation-delay: -0.7s;}.sk-circle-bounce .sk-circle-7:before {-webkit-animation-delay: -0.6s;animation-delay: -0.6s;}.sk-circle-bounce .sk-circle-8:before {-webkit-animation-delay: -0.5s;animation-delay: -0.5s;}.sk-circle-bounce .sk-circle-9:before {-webkit-animation-delay: -0.4s;animation-delay: -0.4s;}.sk-circle-bounce .sk-circle-10:before {-webkit-animation-delay: -0.3s;animation-delay: -0.3s;}.sk-circle-bounce .sk-circle-11:before {-webkit-animation-delay: -0.2s;animation-delay: -0.2s;}.sk-circle-bounce .sk-circle-12:before {-webkit-animation-delay: -0.1s;animation-delay: -0.1s;}@-webkit-keyframes sk-circle-bounce-delay {0%,80%,100% {-webkit-transform: scale(0);transform: scale(0);}40% {-webkit-transform: scale(1);transform: scale(1);}}@keyframes sk-circle-bounce-delay {0%,80%,100% {-webkit-transform: scale(0);transform: scale(0);}40% {-webkit-transform: scale(1);transform: scale(1);}}.sk-cube-grid {width: 4em;height: 4em;margin: auto;/** Spinner positions* 1 2 3* 4 5 6* 7 8 9*/}.sk-cube-grid .sk-cube {width: 33%;height: 33%;background-color: #337ab7;float: left;-webkit-animation: sk-cube-grid-scale-delay 1.3s infinite ease-in-out;animation: sk-cube-grid-scale-delay 1.3s infinite ease-in-out;}.sk-cube-grid .sk-cube-1 {-webkit-animation-delay: 0.2s;animation-delay: 0.2s;}.sk-cube-grid .sk-cube-2 {-webkit-animation-delay: 0.3s;animation-delay: 0.3s;}.sk-cube-grid .sk-cube-3 {-webkit-animation-delay: 0.4s;animation-delay: 0.4s;}.sk-cube-grid .sk-cube-4 {-webkit-animation-delay: 0.1s;animation-delay: 0.1s;}.sk-cube-grid .sk-cube-5 {-webkit-animation-delay: 0.2s;animation-delay: 0.2s;}.sk-cube-grid .sk-cube-6 {-webkit-animation-delay: 0.3s;animation-delay: 0.3s;}.sk-cube-grid .sk-cube-7 {-webkit-animation-delay: 0s;animation-delay: 0s;}.sk-cube-grid .sk-cube-8 {-webkit-animation-delay: 0.1s;animation-delay: 0.1s;}.sk-cube-grid .sk-cube-9 {-webkit-animation-delay: 0.2s;animation-delay: 0.2s;}@-webkit-keyframes sk-cube-grid-scale-delay {0%,70%,100% {-webkit-transform: scale3D(1, 1, 1);transform: scale3D(1, 1, 1);}35% {-webkit-transform: scale3D(0, 0, 1);transform: scale3D(0, 0, 1);}}@keyframes sk-cube-grid-scale-delay {0%,70%,100% {-webkit-transform: scale3D(1, 1, 1);transform: scale3D(1, 1, 1);}35% {-webkit-transform: scale3D(0, 0, 1);transform: scale3D(0, 0, 1);}}.sk-fading-circle {width: 4em;height: 4em;position: relative;margin: auto;}.sk-fading-circle .sk-circle {width: 100%;height: 100%;position: absolute;left: 0;top: 0;}.sk-fading-circle .sk-circle:before {content: "";display: block;margin: 0 auto;width: 15%;height: 15%;background-color: #337ab7;border-radius: 100%;-webkit-animation: sk-fading-circle-delay 1.2s infinite ease-in-out both;animation: sk-fading-circle-delay 1.2s infinite ease-in-out both;}.sk-fading-circle .sk-circle-2 {-webkit-transform: rotate(30deg);transform: rotate(30deg);}.sk-fading-circle .sk-circle-3 {-webkit-transform: rotate(60deg);transform: rotate(60deg);}.sk-fading-circle .sk-circle-4 {-webkit-transform: rotate(90deg);transform: rotate(90deg);}.sk-fading-circle .sk-circle-5 {-webkit-transform: rotate(120deg);transform: rotate(120deg);}.sk-fading-circle .sk-circle-6 {-webkit-transform: rotate(150deg);transform: rotate(150deg);}.sk-fading-circle .sk-circle-7 {-webkit-transform: rotate(180deg);transform: rotate(180deg);}.sk-fading-circle .sk-circle-8 {-webkit-transform: rotate(210deg);transform: rotate(210deg);}.sk-fading-circle .sk-circle-9 {-webkit-transform: rotate(240deg);transform: rotate(240deg);}.sk-fading-circle .sk-circle-10 {-webkit-transform: rotate(270deg);transform: rotate(270deg);}.sk-fading-circle .sk-circle-11 {-webkit-transform: rotate(300deg);transform: rotate(300deg);}.sk-fading-circle .sk-circle-12 {-webkit-transform: rotate(330deg);transform: rotate(330deg);}.sk-fading-circle .sk-circle-2:before {-webkit-animation-delay: -1.1s;animation-delay: -1.1s;}.sk-fading-circle .sk-circle-3:before {-webkit-animation-delay: -1s;animation-delay: -1s;}.sk-fading-circle .sk-circle-4:before {-webkit-animation-delay: -0.9s;animation-delay: -0.9s;}.sk-fading-circle .sk-circle-5:before {-webkit-animation-delay: -0.8s;animation-delay: -0.8s;}.sk-fading-circle .sk-circle-6:before {-webkit-animation-delay: -0.7s;animation-delay: -0.7s;}.sk-fading-circle .sk-circle-7:before {-webkit-animation-delay: -0.6s;animation-delay: -0.6s;}.sk-fading-circle .sk-circle-8:before {-webkit-animation-delay: -0.5s;animation-delay: -0.5s;}.sk-fading-circle .sk-circle-9:before {-webkit-animation-delay: -0.4s;animation-delay: -0.4s;}.sk-fading-circle .sk-circle-10:before {-webkit-animation-delay: -0.3s;animation-delay: -0.3s;}.sk-fading-circle .sk-circle-11:before {-webkit-animation-delay: -0.2s;animation-delay: -0.2s;}.sk-fading-circle .sk-circle-12:before {-webkit-animation-delay: -0.1s;animation-delay: -0.1s;}@-webkit-keyframes sk-fading-circle-delay {0%,39%,100% {opacity: 0;}40% {opacity: 1;}}@keyframes sk-fading-circle-delay {0%,39%,100% {opacity: 0;}40% {opacity: 1;}}.sk-folding-cube {width: 4em;height: 4em;position: relative;margin: auto;-webkit-transform: rotateZ(45deg);transform: rotateZ(45deg);}.sk-folding-cube .sk-cube {float: left;width: 50%;height: 50%;position: relative;-webkit-transform: scale(1.1);transform: scale(1.1);}.sk-folding-cube .sk-cube:before {content: "";position: absolute;top: 0;left: 0;width: 100%;height: 100%;background-color: #337ab7;-webkit-animation: sk-folding-cube-angle 2.4s infinite linear both;animation: sk-folding-cube-angle 2.4s infinite linear both;-webkit-transform-origin: 100% 100%;transform-origin: 100% 100%;}.sk-folding-cube .sk-cube-2 {-webkit-transform: scale(1.1) rotateZ(90deg);transform: scale(1.1) rotateZ(90deg);}.sk-folding-cube .sk-cube-3 {-webkit-transform: scale(1.1) rotateZ(180deg);transform: scale(1.1) rotateZ(180deg);}.sk-folding-cube .sk-cube-4 {-webkit-transform: scale(1.1) rotateZ(270deg);transform: scale(1.1) rotateZ(270deg);}.sk-folding-cube .sk-cube-2:before {-webkit-animation-delay: 0.3s;animation-delay: 0.3s;}.sk-folding-cube .sk-cube-3:before {-webkit-animation-delay: 0.6s;animation-delay: 0.6s;}.sk-folding-cube .sk-cube-4:before {-webkit-animation-delay: 0.9s;animation-delay: 0.9s;}@-webkit-keyframes sk-folding-cube-angle {0%,10% {-webkit-transform: perspective(140px) rotateX(-180deg);transform: perspective(140px) rotateX(-180deg);opacity: 0;}25%,75% {-webkit-transform: perspective(140px) rotateX(0deg);transform: perspective(140px) rotateX(0deg);opacity: 1;}90%,100% {-webkit-transform: perspective(140px) rotateY(180deg);transform: perspective(140px) rotateY(180deg);opacity: 0;}}@keyframes sk-folding-cube-angle {0%,10% {-webkit-transform: perspective(140px) rotateX(-180deg);transform: perspective(140px) rotateX(-180deg);opacity: 0;}25%,75% {-webkit-transform: perspective(140px) rotateX(0deg);transform: perspective(140px) rotateX(0deg);opacity: 1;}90%,100% {-webkit-transform: perspective(140px) rotateY(180deg);transform: perspective(140px) rotateY(180deg);opacity: 0;}}

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

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

相关文章

【CSS3】

文章目录 1.简介2.边框3.圆角4.背景5.渐变CSS3 径向渐变6.文本效果7.字体8.2D转换9.3D转换10.过渡11.动画12.多列13.用户界面14.按钮 ​ 1.简介 模块 CSS3 被拆分为"模块"。旧规范已拆分成小块&#xff0c;还增加了新的。 一些最重要 CSS3 模块如下&#xff1a; 选…

内网隧道代理技术(二十六)之 搭建ICMP隧道上线CS

搭建ICMP隧道上线CS ICMP隧道原理 ICMP隧道简单实用,是一个比较特殊的协议。在一般的通信协议里,如果两台设备要进行通信,肯定需要开放端口,而在ICMP协议下就不需要。最常见的ping命令就是利用的ICMP协议,攻击者可以利用命令行得到比回复更多的ICMP请求。在通常情况下,…

input 的 placeholder 样式

::placeholder 伪元素 这个伪元素可以改变 input、textarea 占位文本的样式。 input::placeholder {color: green; }完整的兼容性写法&#xff1a; input {&::-webkit-input-placeholder, /* WebKit browsers*/ &:-moz-input-placeholder, /* Mozilla Firefox 4 to …

67、数据源配置 及 配置多个数据源--C3P0 数据源 和 Hikari 数据源

★ Spring Boot如何选择DataSource数据源 优先级从高到低&#xff1a; HikariCP > Tomcat pooling DataSource > Commons DBCP2 如果要使用Tomcat pooling DataSource这种池化数据源&#xff0c; 那么可以用</exclusions>这个把HikariCP 排除掉&#xff0c;然后sp…

16. Docker容器监控CAdvisor+InfluxDB+Granfana

目录 1、前言 2、原始命令 3、CAdvisorInfluxDBGranfana 3.1、什么是CAdvisor 3.2、什么是Influxdb 3.3、什么是Granfana 4、安装使用 4.1、安装influxdb 4.2、安装CAdvisor 4.3、安装Granfana 4.4、访问Influxdb 4.5、创建CAdvisor数据库 4.6、访问CAdvisor 4.7…

评价模型:层次分析法

1. 模型建立 1.1 建立层次结构模型 在深入分析实际问题的基础上&#xff0c;将有关的各个因素按照不同属性自上而下地分解成若干层次&#xff0c;同一层的诸因素从属于上一层的因素或对上层因素有影响&#xff0c;同时又支配下一层的因素或受到下层因素的作用。最上层为目标层…

python集合

集合set set_python1.集合的创建2.集合的相关操作3.集合间的关系4.集合的数学操作5.集合生成式 set_python 集合(set)是一个可变的数据类型&#xff0c;它用于存储一组唯一的元素。集合中的元素是无序的&#xff0c;并且不能重复。可以使用大括号{}或者set()函数来创建一个集合…

C# OpenVino Yolov8 Pose 姿态识别

效果 项目 代码 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using OpenCvSharp;namespace OpenVino_Yolov8_Demo {public…

API原理概念篇(六)玩转正则表达式等常用API

一 玩转正则表达式等常用API ① 正则 1、openresty存在两套正则表达式规范1) lua自身独有的正则规范 备注&#xff1a;大约有5%&#xff5e;15%性能损耗损耗原因&#xff1a;表达式compile成pattern,并不会被缓存,每次都会被重新compile编译2) nginx的符合POSIX规范的PCR…

IJK源码分析-android篇

整个IJK播放器框架相较于原始ffplay.c播放器,在三处进行了抽象,分别是: (1)解码器配置初始化操作,对应的数据结构是: struct IJKFF_Pipeline {SDL_Class *opaque_class;IJKFF_Pipeline_Opaque *opaque;void (*func_destroy) (IJKFF_Pipe…

合宙Air724UG LuatOS-Air LVGL API控件-微调框 (Spinbox)

微调框 (Spinbox) 微调框用于数值调整&#xff0c;有时候我们希望获取一个用户输入的数值&#xff0c;但是又不希望弹出键盘&#xff0c;可以使用微调框。 示例代码 -- 回调函数 function spinbox_increment_event_cb(obj, event)if event lvgl.EVENT_SHORT_CLICKED thenlvg…

openssl websockets

1. HTTPS通信的C实现 - 知乎

fluent python part3 一等函数

第 5 章 一等函数 5.1 把函数视作对象 >>> def factorial(n): ... """return n!""" ... return 1 if n < 2 else n * factorial(n - 1) ... >>> factorial(42) 140500611775287989854314260624451156993638400000…

【物联网】简要介绍最小二乘法—C语言实现

最小二乘法是一种常用的数学方法&#xff0c;用于拟合数据和寻找最佳拟合曲线。它的目标是找到一个函数&#xff0c;使其在数据点上的误差平方和最小化。 文章目录 基本原理最小二乘法的求解应用举例使用C语言实现最小二乘法总结 基本原理 假设我们有一组数据点 ( x 1 , y 1 …

pandas读取一个 文件夹下所有excel文件

我这边有个需求&#xff0c;是要求汇总一个文件夹所有的excel文件&#xff0c; 其中有.xls和 .xlsx文件&#xff0c;同时还excel文件中的数据可能还不一致&#xff0c;会有表头数据不一样需要一起汇总。 首先先遍历子文件夹并读取Excel文件&#xff1a; 使用os库来遍历包含子文…

LeetCode 面试题 04.09. 二叉搜索树序列

文章目录 一、题目二、C# 题解 一、题目 从左向右遍历一个数组&#xff0c;通过不断将其中的元素插入树中可以逐步地生成一棵二叉搜索树。 给定一个由不同节点组成的二叉搜索树 root&#xff0c;输出所有可能生成此树的数组。 点击此处跳转题目。 示例 1: 输入: root [2,1,3]…

记录:移动设备软件开发(activity组件)

目录 前言Android简介和发展Android应用的基本组件介绍Activity组件Activity简介Activity的状态和生命周期 小结 前言 移动设备软件开发是指为智能手机、平板电脑等移动设备设计和开发应用程序的过程。移动设备软件开发涉及多种技术、平台和工具&#xff0c;例如Android、iOS、…

9.14号作业

仿照vector手动实现自己的myVector&#xff0c;最主要实现二倍扩容功能 有些功能&#xff0c;不会 #include <iostream>using namespace std; //创建vector类 class Vector { private:int *data;int size;int capacity; public://无参构造Vector(){}//拷贝构造Vector(c…

一个方法用js生成随机双色球、大乐透

代码如下&#xff1a; <!DOCTYPE html> <html lang"en"><head><meta charset"UTF-8"><meta name"viewport" content"widthdevice-width, initial-scale1.0"><title>Document</title><s…

002 Linux 权限

前言 本文将会向您介绍关于linux权限方面的内容&#xff0c;包括文件类型&#xff0c;如何切换用户、基本权限、粘滞位等等 Linux具体的用户 超级用户&#xff1a;可以再linux系统下做任何事情&#xff0c;不受限制 普通用户&#xff1a;在linux下做有限的事情。 超级用户的…