【小記】-005--純CSS實現的小玩意兒

效果圖奉上

代碼奉上

<!DOCTYPE html>
<html lang="zh"><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></title><style type="text/css">* {-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;}html {color: #fff;font-family: 'Source Sans Pro', sans-serif;background-color: #59488b;}h1,h2 {color: rgba(255, 255, 255, 0.5);font-size: 40px;font-weight: 200;text-align: center;margin: 40px 0 0 0;}h2 {font-size: 18px;margin: 0;padding: 0;margin: 10px 0;}h1 span {font-size: 30px;}a {text-decoration: none;}a:hover {transition: all linear 0.2s;}::-moz-selection {background: #b3d4fc;text-shadow: none;}::selection {background: #b3d4fc;text-shadow: none;}.wrapper {width: 700px;margin: 0 auto;}.row {text-align: center;padding: 50px 0;}.span,.span_large {float: left;width: 100px;background-color: rgba(0, 0, 0, 0.02);height: 100px;vertical-align: middle;border-radius: 1px;margin-right: 100px;}.span:last-child {margin-right: 0px;}/* Timer*/.timer {width: 24px;height: 24px;background-color: transparent;box-shadow: inset 0px 0px 0px 2px #fff;border-radius: 50%;position: relative;margin: 38px auto;/* Not necessary- its only for layouting*/}.timer:after,.timer:before {position: absolute;content: "";background-color: #fff;}.timer:after {width: 10px;height: 2px;top: 11px;left: 11px;-webkit-transform-origin: 1px 1px;-moz-transform-origin: 1px 1px;transform-origin: 1px 1px;-webkit-animation: minhand 2s linear infinite;-moz-animation: minhand 2s linear infinite;animation: minhand 2s linear infinite;}.timer:before {width: 8px;height: 2px;top: 11px;left: 11px;-webkit-transform-origin: 1px 1px;-moz-transform-origin: 1px 1px;transform-origin: 1px 1px;-webkit-animation: hrhand 8s linear infinite;-moz-animation: hrhand 8s linear infinite;animation: hrhand 8s linear infinite;}@-webkit-keyframes minhand {0% {-webkit-transform: rotate(0deg)}100% {-webkit-transform: rotate(360deg)}}@-moz-keyframes minhand {0% {-moz-transform: rotate(0deg)}100% {-moz-transform: rotate(360deg)}}@keyframes minhand {0% {transform: rotate(0deg)}100% {transform: rotate(360deg)}}@-webkit-keyframes hrhand {0% {-webkit-transform: rotate(0deg)}100% {-webkit-transform: rotate(360deg)}}@-moz-keyframes hrhand {0% {-moz-transform: rotate(0deg)}100% {-moz-transform: rotate(360deg)}}@keyframes hrhand {0% {transform: rotate(0deg)}100% {transform: rotate(360deg)}}/*Typing Loader*/.typing_loader {width: 6px;height: 6px;border-radius: 50%;-webkit-animation: typing 1s linear infinite alternate;-moz-animation: Typing 1s linear infinite alternate;animation: typing 1s linear infinite alternate;margin: 46px auto;/* Not necessary- its only for layouting*/position: relative;left: -12px;}@-webkit-keyframes typing {0% {background-color: rgba(255, 255, 255, 1);box-shadow: 12px 0px 0px 0px rgba(255, 255, 255, 0.2),24px 0px 0px 0px rgba(255, 255, 255, 0.2);}25% {background-color: rgba(255, 255, 255, 0.4);box-shadow: 12px 0px 0px 0px rgba(255, 255, 255, 2),24px 0px 0px 0px rgba(255, 255, 255, 0.2);}75% {background-color: rgba(255, 255, 255, 0.4);box-shadow: 12px 0px 0px 0px rgba(255, 255, 255, 0.2),24px 0px 0px 0px rgba(255, 255, 255, 1);}}@-moz-keyframes typing {0% {background-color: rgba(255, 255, 255, 1);box-shadow: 12px 0px 0px 0px rgba(255, 255, 255, 0.2),24px 0px 0px 0px rgba(255, 255, 255, 0.2);}25% {background-color: rgba(255, 255, 255, 0.4);box-shadow: 12px 0px 0px 0px rgba(255, 255, 255, 2),24px 0px 0px 0px rgba(255, 255, 255, 0.2);}75% {background-color: rgba(255, 255, 255, 0.4);box-shadow: 12px 0px 0px 0px rgba(255, 255, 255, 0.2),24px 0px 0px 0px rgba(255, 255, 255, 1);}}@keyframes typing {0% {background-color: rgba(255, 255, 255, 1);box-shadow: 12px 0px 0px 0px rgba(255, 255, 255, 0.2),24px 0px 0px 0px rgba(255, 255, 255, 0.2);}25% {background-color: rgba(255, 255, 255, 0.4);box-shadow: 12px 0px 0px 0px rgba(255, 255, 255, 2),24px 0px 0px 0px rgba(255, 255, 255, 0.2);}75% {background-color: rgba(255, 255, 255, 0.4);box-shadow: 12px 0px 0px 0px rgba(255, 255, 255, 0.2),24px 0px 0px 0px rgba(255, 255, 255, 1);}}/*Location indicator */.location_indicator {margin: 30px auto;position: relative;left: -9px;}.location_indicator:before,.location_indicator:after {position: absolute;content: "";}.location_indicator:before {width: 20px;height: 20px;border-radius: 100% 100% 100% 0;box-shadow: 0px 0px 0px 2px rgba(255, 255, 255, 1);-webkit-animation: mapping 1s linear infinite;-moz-animation: mapping 1s linear infinite;animation: mapping 1s linear infinite;-webkit-transform: rotate(-46deg);-moz-transform: rotate(-46deg);transform: rotate(-46deg);}.location_indicator:after {width: 30px;height: 10px;border-radius: 100%;left: 44px;background-color: rgba(255, 255, 255, 0.2);top: 24px;z-index: -1;}@-webkit-keyframes mapping {0% {top: 0;}50% {top: -5px;}100% {top: 0;}}@-moz-keyframes mapping {0% {top: 0;}50% {top: -5px;}100% {top: 0;}}@-keyframes mapping {0% {top: 0;}50% {top: -5px;}100% {top: 0;}}/* go in*/.dashboard {width: 32px;height: 32px;margin: 30px auto;border: 2px rgba(255, 255, 255, 1) solid;border-radius: 100%;position: relative;overflow: hidden;z-index: 1;}.dashboard:after,.dashboard:before {position: absolute;content: "";}.dashboard:after {width: 14px;height: 2px;top: 20px;-webkit-transform-origin: 1px 1px;-moz-transform-origin: 1px 1px;transform-origin: 1px 1px;background-color: rgba(255, 255, 255, 1);-webkit-animation: dashboard_hand 2s linear infinite alternate;-moz-animation: dashboard_hand 2s linear infinite alternate;animation: dashboard_hand 2s linear infinite alternate;}.dashboard:before {width: 32px;height: 10px;background-color: rgba(255, 255, 255, 1);top: 20px;left: -2px;}@-webkit-keyframes dashboard_hand {0% {-webkit-transform: rotate(-160deg);}100% {-webkit-transform: rotate(-20deg);}}@-moz-keyframes dashboard_hand {0% {-moz-transform: rotate(-160deg);}100% {-moz-transform: rotate(-20deg);}}@keyframes dashboard_hand {0% {transform: rotate(-160deg);}100% {transform: rotate(-20deg);}}/*Battery*/.battery {width: 28px;height: 14px;border: 1px #fff solid;border-radius: 2px;position: relative;-webkit-animation: charge 5s linear infinite;-moz-animation: charge 5s linear infinite;animation: charge 5s linear infinite;top: 40px;margin: 0 auto;}.battery:after {width: 2px;height: 7px;background-color: #fff;border-radius: 0px 1px 1px 0px;position: absolute;content: "";top: 2px;right: -4px;}@-webkit-keyframes charge {0% {box-shadow: inset 0px 0px 0px #fff;}100% {box-shadow: inset 30px 0px 0px #fff;}}@-moz-keyframes charge {0% {box-shadow: inset 0px 0px 0px #fff;}100% {box-shadow: inset 30px 0px 0px #fff;}}@keyframes charge {0% {box-shadow: inset 0px 0px 0px #fff;}100% {box-shadow: inset 30px 0px 0px #fff;}}.magnifier {width: 20px;height: 20px;box-shadow: 0px 0px 0px 1px #fff;border-radius: 50%;position: relative;margin: 34px auto;-webkit-animation: magnify 1s linear infinite alternate;-moz-animation: magnify 1s linear infinite alternate;animation: magnify 1s linear infinite alternate;}.magnifier:after,.magnifier:before {position: absolute;content: "";}.magnifier:before {content: "me";font-size: 12px;left: 2px;text-align: center;top: 2px;}.magnifier:after {width: 2px;height: 8px;background-color: #fff;bottom: -6px;left: 20px;border-radius: 2px;-webkit-transform: rotate(-45deg);-moz-transform: rotate(-45deg);transform: rotate(-45deg);}@-webkit-keyframes magnify {0% {-webkit-transform: scale(1);}100% {-webkit-transform: scale(1.5);}}@-moz-keyframes magnify {0% {-moz-transform: scale(1);}100% {-moz-transform: scale(1.5);}}@keyframes magnify {0% {transform: scale(1);}100% {transform: scale(1.5);}}/*help ′óí·í? www.datouwang.com */.help {width: 30px;height: 30px;border: 1px #fff solid;border-radius: 50%;-webkit-animation: rotation 1s ease-in-out infinite;-moz-animation: rotation 1s ease-in-out infinite;animation: rotation 1s ease-in-out infinite;margin: 30px auto;}.help:after {width: 5px;height: 5px;background-color: rgba(255, 255, 255, 1);border-radius: 100%;position: absolute;content: "";}@-webkit-keyframes rotation {0% {-webkit-transform: rotate(0deg);}100% {-webkit-transform: rotate(360deg);}}@-moz-keyframes rotation {0% {-moz-transform: rotate(0deg);}100% {-moz-transform: rotate(360deg);}}@keyframes rotation {0% {transform: rotate(0deg);}100% {transform: rotate(360deg);}}/*eye ball*/.eye {width: 20px;height: 20px;background-color: rgba(255, 255, 255, 0.8);border-radius: 50%;box-shadow: 30px 0px 0px 0px rgba(255, 255, 255, 0.8);position: relative;margin: 36px 26px;}.eye:after {background-color: #59488b;width: 10px;height: 10px;box-shadow: 30px 0px 0px 0px #59488b;border-radius: 50%;left: 9px;top: 8px;position: absolute;content: "";-webkit-animation: eyeball 2s linear infinite alternate;-moz-animation: eyeball 2s linear infinite alternate;animation: eyeball 2s linear infinite alternate;}@-webkit-keyframes eyeball {0% {left: 9px;}100% {left: 1px;}}@-moz-keyframes eyeball {0% {left: 9px;}100% {left: 1px;}}@keyframes eyeball {0% {left: 9px;}100% {left: 1px;}}/*coffee cup*/.coffee_cup {width: 20px;height: 24px;border: 1px rgba(255, 255, 255, 1) solid;border-radius: 0px 0px 5px 5px;position: relative;margin: 36px auto;}.coffee_cup:after,.coffee_cup:before {position: absolute;content: "";}.coffee_cup:after {width: 5px;height: 12px;border: 1px #fff solid;border-left: none;border-radius: 0px 20px 20px 0px;left: 20px;}.coffee_cup:before {width: 1px;height: 6px;background-color: rgba(255, 255, 255, 1);top: -10px;left: 4px;box-shadow: 5px 0px 0px 0px rgba(255, 255, 255, 1),5px -5px 0px 0px rgba(255, 255, 255, 1),10px 0px 0px 0px rgba(255, 255, 255, 1);-webkit-animation: steam 1s linear infinite alternate;-moz-animation: steam 1s linear infinite alternate;animation: steam 1s linear infinite alternate;}@-webkit-keyframes steam {0% {height: 0px;}100% {height: 6px;}}@-moz-keyframes steam {0% {height: 0px}100% {height: 6px;}}@keyframes steam {0% {height: 0px}100% {height: 6px;}}/*square*/.square {width: 20px;height: 20px;border: 1px rgba(255, 255, 255, 1) solid;margin: 36px auto;position: relative;-webkit-animation: fill_color 5s linear infinite;-moz-animation: fill_color 5s linear infinite;animation: fill_color 5s linear infinite;}.square:after {width: 4px;height: 4px;position: absolute;content: "";background-color: rgba(255, 255, 255, 1);top: -8px;left: 0px;-webkit-animation: square_check 1s ease-in-out infinite;-moz-animation: square_check 1s ease-in-out infinite;animation: square_check 1s ease-in-out infinite;}@-webkit-keyframes square_check {25% {left: 22px;top: -8px;}50% {left: 22px;top: 22px;}75% {left: -9px;top: 22px;}100% {left: -9px;top: -7px;}}@-moz-keyframes square_check {25% {left: 22px;top: -8px;}50% {left: 22px;top: 22px;}75% {left: -9px;top: 22px;}100% {left: -9px;top: -7px;}}@keyframes square_check {25% {left: 22px;top: -8px;}50% {left: 22px;top: 22px;}75% {left: -9px;top: 22px;}100% {left: -9px;top: -7px;}}@-webkit-keyframes fill_color {0% {box-shadow: inset 0px 0px 0px 0px rgba(255, 255, 255, 0.1);}100% {box-shadow: inset 0px -20px 0px 0px rgba(255, 255, 255, 1);}}@-moz-keyframes fill_color {0% {box-shadow: inset 0px 0px 0px 0px rgba(255, 255, 255, 0.1);}100% {box-shadow: inset 0px -20px 0px 0px rgba(255, 255, 255, 1);}}@keyframes fill_color {0% {box-shadow: inset 0px 0px 0px 0px rgba(255, 255, 255, 0.1);}100% {box-shadow: inset 0px -20px 0px 0px rgba(255, 255, 255, 1);}}/*circle classick*/.circle {margin: 40px auto;position: relative;width: 8px;height: 8px;background-color: rgba(255, 255, 255, .5);;box-shadow: -14px 0px 0px rgba(255, 255, 255, 1);border-radius: 50%;-webkit-animation: circle_classic 1s ease-in-out infinite alternate;-moz-animation: circle_classic 1s ease-in-out infinite alternate;animation: circle_classic 1s ease-in-out infinite alternate;}@-webkit-keyframes circle_classic {0% {opacity: 0.1;-webkit-transform: rotate(0deg) scale(0.5);}100% {opacity: 1;-webkit-transform: rotate(360deg) scale(1.2);}}@-moz-keyframes circle_classic {0% {opacity: 0.1;-moz-transform: rotate(0deg) scale(0.5);}100% {opacity: 1;-moz-transform: rotate(360deg) scale(1.2);}}@keyframes circle_classic {0% {opacity: 0.1;transform: rotate(0deg) scale(0.5);}100% {opacity: 1;transform: rotate(360deg) scale(1.2);}}/*cloud*/.cloud {margin: 42px 30px;width: 4px;height: 10px;opacity: 0.5;position: relative;box-shadow: 6px 0px 0px 0px rgba(255, 255, 255, 1),12px 0px 0px 0px rgba(255, 255, 255, 1),18px 0px 0px 0px rgba(255, 255, 255, 1),24px 0px 0px 0px rgba(255, 255, 255, 1),30px 0px 0px 0px rgba(255, 255, 255, 1),36px 0px 0px 0px rgba(255, 255, 255, 1);-webkit-animation: rain 1s linear infinite alternate;-moz-animation: rain 1s linear infinite alternate;animation: rain 1s linear infinite alternate;}.cloud:after {width: 40px;height: 10px;position: absolute;content: "";background-color: rgba(255, 255, 255, 1);top: 0px;opacity: 1;-webkit-animation: line_flow 2s linear infinite reverse;-moz-animation: line_flow 2s linear infinite reverse;animation: line_flow 2s linear infinite reverse;}@-webkit-keyframes rain {0% {box-shadow: 6px 0px 0px 0px rgba(255, 255, 255, 1),12px 0px 0px 0px rgba(255, 255, 255, 0.9),18px 0px 0px 0px rgba(255, 255, 255, 0.7),24px 0px 0px 0px rgba(255, 255, 255, 0.6),30px 0px 0px 0px rgba(255, 255, 255, 0.3),36px 0px 0px 0px rgba(255, 255, 255, 0.2);}100% {box-shadow: 6px 0px 0px 0px rgba(255, 255, 255, 0.2),12px 0px 0px 0px rgba(255, 255, 255, 0.3),18px 0px 0px 0px rgba(255, 255, 255, 0.6),24px 0px 0px 0px rgba(255, 255, 255, 0.7),30px 0px 0px 0px rgba(255, 255, 255, 0.9),36px 0px 0px 0px rgba(255, 255, 255, 1);opacity: 1;}}@-moz-keyframes rain {0% {box-shadow: 6px 0px 0px 0px rgba(255, 255, 255, 1),12px 0px 0px 0px rgba(255, 255, 255, 0.9),18px 0px 0px 0px rgba(255, 255, 255, 0.7),24px 0px 0px 0px rgba(255, 255, 255, 0.6),30px 0px 0px 0px rgba(255, 255, 255, 0.3),36px 0px 0px 0px rgba(255, 255, 255, 0.2);}100% {box-shadow: 6px 0px 0px 0px rgba(255, 255, 255, 0.2),12px 0px 0px 0px rgba(255, 255, 255, 0.3),18px 0px 0px 0px rgba(255, 255, 255, 0.6),24px 0px 0px 0px rgba(255, 255, 255, 0.7),30px 0px 0px 0px rgba(255, 255, 255, 0.9),36px 0px 0px 0px rgba(255, 255, 255, 1);opacity: 1;}}@keyframes rain {0% {box-shadow: 6px 0px 0px 0px rgba(255, 255, 255, 1),12px 0px 0px 0px rgba(255, 255, 255, 0.9),18px 0px 0px 0px rgba(255, 255, 255, 0.7),24px 0px 0px 0px rgba(255, 255, 255, 0.6),30px 0px 0px 0px rgba(255, 255, 255, 0.3),36px 0px 0px 0px rgba(255, 255, 255, 0.2);}100% {box-shadow: 6px 0px 0px 0px rgba(255, 255, 255, 0.2),12px 0px 0px 0px rgba(255, 255, 255, 0.3),18px 0px 0px 0px rgba(255, 255, 255, 0.6),24px 0px 0px 0px rgba(255, 255, 255, 0.7),30px 0px 0px 0px rgba(255, 255, 255, 0.9),36px 0px 0px 0px rgba(255, 255, 255, 1);opacity: 1;}}@-webkit-keyframes line_flow {0% {width: 0px;}100% {width: 40px;}}@-moz-keyframes line_flow {0% {width: 0px;}100% {width: 40px;}}@keyframes line_flow {0% {width: 0px;}100% {width: 40px;}}/* Me */.aboutme {width: 700px;padding: 50px 0;border-top: 2px rgba(255, 255, 255, 0.03) solid;}.viduthalai {background: url(../img/viduthalai.png) no-repeat;width: 100px;height: 100px;border-radius: 0 2px 2px 0;float: left;opacity: 0.5;}.viduthalai:hover {opacity: 1;}.intro {float: left;width: 400px;padding-left: 20px;color: rgba(255, 255, 255, 0.5);}.intro a {color: rgba(255, 255, 255, 0.5);}.intro a:hover {color: rgba(255, 255, 255, 1);}.intro span,p {font-size: 15px;font-weight: 200;}.intro h3 {font-size: 20px;font-weight: 200;margin: 0px;}.git {color: rgba(255, 255, 255, 0.5);float: right;text-align: right;padding: 10px 20px;border-radius: 2px;background-color: rgba(0, 0, 0, 0.3);font-weight: 200;}.git:hover {background-color: rgba(0, 0, 0, 0.2);}</style></head><body><div style="text-align:center;clear:both"><script src="/gg_bd_ad_720x90.js" type="text/javascript"></script><script src="/follow.js" type="text/javascript"></script></div><!-- 代碼 開始 --><div class="wrapper"><div class="row cf"><div class="span"><div class="timer"></div></div><div class="span"><div class="typing_loader"></div></div><div class="span"><div class="location_indicator"></div></div><div class="span"><div class="dashboard"></div></div></div><div class="row cf"><div class="span"><div class="battery"></div></div><div class="span"><div class="magnifier"></div></div><div class="span"><div class="help"></div></div><div class="span"><div class="cloud"></div></div></div><div class="row cf"><div class="span"><div class="eye"></div></div><div class="span"><div class="coffee_cup"></div></div><div class="span"><div class="square"></div></div><div class="span"><div class="circle"></div></div></div></div><!-- 代碼 結束 --><div style="text-align:center;clear:both"><script src="/gg_bd_ad_720x90-2.js" type="text/javascript"></script></div></body>
</html>

這個忘記是哪位博主的了,就不貼鏈接了,看到請聯系

?

另外還看到比較漂亮的Loading圖

https://blog.csdn.net/qingfeidie/article/details/79976151

https://www.cnblogs.com/lhb25/p/loading-spinners-animated-with-css3.html

?

轉載于:https://www.cnblogs.com/zjt-blogs/p/10732026.html

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/249119.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/249119.shtml
英文地址,請注明出處:http://en.pswp.cn/news/249119.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

JavaScript從入門到精通之入門篇(二)函數和數組

入門篇大綱 第二部分 函數與數組 1.函數 函數的定義 普通函數 function 函數名 &#xff08;表達式1…&#xff09; { 代碼塊 }js是解釋性語言&#xff0c;在當前script標簽代碼執行的開始階段&#xff0c;就會將普通函數放入堆中&#xff0c;也只是將引用放入堆中&#xf…

leetcode 557. Reverse Words in a String III 、151. Reverse Words in a String

557. Reverse Words in a String III 最簡單的把空白之間的詞反轉 class Solution { public:string reverseWords(string s) {vector<int> blank;for(int i 0;i < s.size();i){if(s[i] )blank.push_back(i);}int start 0;int end;for(int i 0;i < blank.size(…

elementUI vue table status的狀態列顏色變化和操作列狀態顯示(停用, 啟用)

<div id"app" style"display: none">...<el-table-column prop"status" label"狀態" width"80" align"center"><template scope"scope"><span v-if"scope.row.status0"…

一道Python面試題

無意間&#xff0c;看到這么一道Python面試題&#xff1a;以下代碼將輸出什么&#xff1f; def testFun(): temp [lambda x : i*x for i in range(4)] return temp for everyLambda in testFun(): print (everyLambda(2))腦中默默一想&#xff0c;這還用說么&#xff0c;肯定是…

Windows下的ssh姐妹花 Xshell 和 Xftp

Windows下的ssh姐妹花 Xshell 和 Xftp 今天是3月8號&#xff0c;中國傳統的三八婦女節&#xff0c;是距離中國新興節日三七女生&#xff08;神&#xff09;節最近的一個全國性節日&#xff0c;今天我也是宅在家&#xff0c;研究了一下近日工作上遇到的一個純軟件技術問題。廢話…

關于數字證書理解的簡單整理以及12306站點證書簡單分析

版權聲明&#xff1a;本文為博主原創文章&#xff0c;未經博主允許不得轉載。 https://blog.csdn.net/sundacheng1989/article/details/25540601 首先簡單理解一下什么是數字證書。這里是一篇英文文檔&#xff0c;描寫敘述的非常形象。形象的描寫敘述了什么是公鑰。什么是私鑰。…

Luogu3350 ZJOI2016 旅行者 最短路、分治

傳送門 題意&#xff1a;給出一個$N \times M$的網格圖&#xff0c;邊有邊權&#xff0c;$Q$組詢問&#xff0c;每組詢問$(x_1,y_1)$到$(x_2,y_2)$的最短路。$N \times M \leq 2 \times 10^4 , Q \leq 10^5$ BZOJ原題竟然沒有數據范圍 矩形的多組詢問問題考慮分治。考慮計算矩形…

Mac中安裝Node和版本控制工具nvm遇到的坑

首先說說常規的安裝 1. 下載nvm,使用nvm來管理Node版本 官方文檔 windows 版本  https://github.com/coreybutler/nvm-windows mac 版本    https://github.com/creationix/nvm#install-script 命令行 盡量不要用brew&#xff0c;免得掉坑 curl -o- https://raw.githubu…

幾道比較有意思的js面試題

1、[] ? !![] : ![];輸出結果是什么&#xff1f; 12345let val [] ? !![] : ![];console.log(val); //true&#xff1a;//之前的錯誤解釋&#xff1a;[] 是一個null&#xff0c;做判斷則為false&#xff0c;false執行![]語句&#xff0c;結果為非空&#xff0c;即true//更正…

wepy - 與原生有什么不同(x.wpy)使用實例

源碼 1 <template>2 <view classmark wx:if"{{showMark}}">3 <view animation"{{animationData}}" class"animCat">4 <image src"http://osk1hpe2y.bkt.clouddn.com/18-5-30/34559443.jpg"></…

vue從入門到精通之高級篇(一)vue-router的高級用法

今天要介紹的是路由元信息&#xff0c;滾動行為以及路由懶加載這幾個的使用方法。 1.路由元信息 什么是路由元信息&#xff0c;看看官網的解釋&#xff0c;定義路由的時候可以配置 meta 字段可以匹配meta字段&#xff0c;那么我們該如何使用它&#xff0c;一個簡單的例子&…

Java 數組實現堆棧操作

class Stack {private int stck[] ; private int tos ; Stack(int size) { // 一個參數的構造參數stck new int[size] ; // 創建數組&#xff08;創建堆棧&#xff09;tos -1 ; // 空堆棧標識 -1}// 堆棧操作的特性&#xff1a;先進后出、后進先出void push(int…

re模塊

什么是正則表達式 一組特殊符號組成的表達式&#xff0c;用于描述某種規則。該應用場景生活中隨處可見。 例如&#xff1a;讓有志青年過上體面的生活&#xff0c;這里面就由規則&#xff0c;即有志青年。 正則表達式的作用&#xff0c;以及使用場景 用于從字符串中匹配滿足某種…

CSS實現div梯形分割

原理 使用的border邊框屬性結合svg 轉換 詳見代碼 <!DOCTYPE html> <html lang"en"> <head><meta charset"UTF-8"><title>css實現div邊框斜角</title><style type"text/css"> .labels {display: i…

算法學習——決策單調性優化DP

update in 2019.1.21 優化了一下文中年代久遠的代碼 的格式…… 什么是決策單調性&#xff1f; 在滿足決策單調性的情況下&#xff0c;通常決策點會形如1111112222224444445555588888..... 即不可能會出現后面點的決策點小于前面點的決策點這種情況。 那么這個性質應該如何使用…

SVG畫一個箭頭

參考菜鳥手冊&#xff1a; https://www.runoob.com/svg/svg-tutorial.html 打開菜鳥中的在線工具 在可視化截圖拖拉元素繪制箭頭 點擊command U 查看源碼 將源碼拷入html代碼中&#xff0c;查看效果 最后&#xff0c;貼出源碼供大家參考 <!DOCTYPE html> <…

HP Instant Information

HP Instant Information before HP-UX 11i v3 《管理系統和工作組&#xff1a;HP-UX系統管理員指南》 After HP-UX 11i v3 《HP-UX系統管理指南》(由多個文檔組成的文檔集) 《HP-UX系統管理員指南&#xff1a;概述》 《HP-UX系統管理員指南&#xff1a;配置管理》 《HP-UX系統管…

CodeForces 258D Little Elephant and Broken Sorting(期望)

CF258D Little Elephant and Broken Sorting 題意 題意翻譯 有一個\(1\sim n\)的排列&#xff0c;會進行\(m\)次操作&#xff0c;操作為交換\(a,b\)。每次操作都有\(50\%\)的概率進行。 求進行\(m\)次操作以后的期望逆序對個數。 \(n,m\le 1000\) 輸入輸出格式 輸入格式&#x…

記一次vue項目yarn打包環境配置失效的解決方案

項目中使用到了yarn打包工程&#xff0c;主要有以下幾個命名。 # build for production with minification yarn run build# build for production and view the bundle analyzer report yarn run build --report# 自定義API地址 baseurl"http://127.0.0.1:8080/api/&quo…

數字簽名與HTTPS詳解

因為HTTP協議本身存在著明文傳輸、不能很好的驗證通信方的身份和無法驗證報文的完整性等一些安全方面的確點&#xff0c;所以才有了HTTPS的缺陷。HTTPS確切的的說不是一種協議&#xff0c;而是HTTP SSL (TSL)的結合體。HTTP報文經過SSL層加密后交付給TCP層進行傳輸。SSL(安全套…