diff --git "a/H5+Css3/\344\274\252\347\261\273/Taiji.html" "b/\344\274\215\346\231\272\350\276\211/H5+Css3/\344\274\252\347\261\273/Taiji.html" similarity index 100% rename from "H5+Css3/\344\274\252\347\261\273/Taiji.html" rename to "\344\274\215\346\231\272\350\276\211/H5+Css3/\344\274\252\347\261\273/Taiji.html" diff --git "a/H5+Css3/\345\200\274\344\270\216\345\215\225\344\275\215/Index.html" "b/\344\274\215\346\231\272\350\276\211/H5+Css3/\345\200\274\344\270\216\345\215\225\344\275\215/Index.html" similarity index 100% rename from "H5+Css3/\345\200\274\344\270\216\345\215\225\344\275\215/Index.html" rename to "\344\274\215\346\231\272\350\276\211/H5+Css3/\345\200\274\344\270\216\345\215\225\344\275\215/Index.html" diff --git "a/H5+Css3/\345\200\274\344\270\216\345\215\225\344\275\215/index_2.html" "b/\344\274\215\346\231\272\350\276\211/H5+Css3/\345\200\274\344\270\216\345\215\225\344\275\215/index_2.html" similarity index 100% rename from "H5+Css3/\345\200\274\344\270\216\345\215\225\344\275\215/index_2.html" rename to "\344\274\215\346\231\272\350\276\211/H5+Css3/\345\200\274\344\270\216\345\215\225\344\275\215/index_2.html" diff --git "a/H5+Css3/\345\270\203\345\261\200/index.html" "b/\344\274\215\346\231\272\350\276\211/H5+Css3/\345\270\203\345\261\200/index.html" similarity index 100% rename from "H5+Css3/\345\270\203\345\261\200/index.html" rename to "\344\274\215\346\231\272\350\276\211/H5+Css3/\345\270\203\345\261\200/index.html" diff --git "a/\344\274\215\346\231\272\350\276\211/H5+Css3/\345\274\271\346\200\247\347\233\222\345\255\220/1.html" "b/\344\274\215\346\231\272\350\276\211/H5+Css3/\345\274\271\346\200\247\347\233\222\345\255\220/1.html" new file mode 100644 index 0000000000000000000000000000000000000000..742f1efcb450bc943657d42eb56cba7335fdeae4 --- /dev/null +++ "b/\344\274\215\346\231\272\350\276\211/H5+Css3/\345\274\271\346\200\247\347\233\222\345\255\220/1.html" @@ -0,0 +1,58 @@ + + + + + + + Document + + + +
+
+ + + + +
+
+
+
1
+
2
+
3
+
4
+
5
+
+ + + \ No newline at end of file diff --git "a/H5+Css3/\345\274\271\346\200\247\347\233\222\345\255\220/index.html" "b/\344\274\215\346\231\272\350\276\211/H5+Css3/\345\274\271\346\200\247\347\233\222\345\255\220/index.html" similarity index 100% rename from "H5+Css3/\345\274\271\346\200\247\347\233\222\345\255\220/index.html" rename to "\344\274\215\346\231\272\350\276\211/H5+Css3/\345\274\271\346\200\247\347\233\222\345\255\220/index.html" diff --git "a/\344\274\215\346\231\272\350\276\211/H5+Css3/\345\274\271\346\200\247\347\233\222\345\255\220/style.css" "b/\344\274\215\346\231\272\350\276\211/H5+Css3/\345\274\271\346\200\247\347\233\222\345\255\220/style.css" new file mode 100644 index 0000000000000000000000000000000000000000..4a4510b2d33eace5fad942b30609486bbaf88617 --- /dev/null +++ "b/\344\274\215\346\231\272\350\276\211/H5+Css3/\345\274\271\346\200\247\347\233\222\345\255\220/style.css" @@ -0,0 +1,32 @@ +.body { + background-color: #eaeaea; +} +.row{ + margin: 4px; + height: 25px; + width: 400px; +} +#center_box { + /* width: 500px; + height: 500px; */ + background-color: #eaeaea; + padding: 4px; +} +[class^='box'] { + display: flex; + flex-direction: row; + height: 80px; + width: 80px; + background-color: chocolate; + margin: 4px; + border: 5px solid #000; + border-radius: 10%; +} +[class^='box'] > span { + display: flex; + justify-content: center; + align-items: center; + /* margin-left: 50%; */ + margin-left: 30px; + font-size: 24px; +} \ No newline at end of file diff --git "a/\344\274\215\346\231\272\350\276\211/H5+Css3/\346\227\266\351\222\237-transform/clock.html" "b/\344\274\215\346\231\272\350\276\211/H5+Css3/\346\227\266\351\222\237-transform/clock.html" new file mode 100644 index 0000000000000000000000000000000000000000..01a5e959299d217f3fce43986197cb686054e44b --- /dev/null +++ "b/\344\274\215\346\231\272\350\276\211/H5+Css3/\346\227\266\351\222\237-transform/clock.html" @@ -0,0 +1,84 @@ + + + + + + + + Document + + + + + +
+ +
+
+
+
+
+
+
12
+
9
+
6
+
3
+
+
+
+ + + + + \ No newline at end of file diff --git "a/\344\274\215\346\231\272\350\276\211/H5+Css3/\346\227\266\351\222\237-transform/style.css" "b/\344\274\215\346\231\272\350\276\211/H5+Css3/\346\227\266\351\222\237-transform/style.css" new file mode 100644 index 0000000000000000000000000000000000000000..ec031a5b6e5e745e89dbee411ac3996b7d03a744 --- /dev/null +++ "b/\344\274\215\346\231\272\350\276\211/H5+Css3/\346\227\266\351\222\237-transform/style.css" @@ -0,0 +1,111 @@ +html,body { + display: flex; + justify-content: center; + align-items: center; + height: 100%; +} +.Round { + height: 500px; + width: 500px; + border: 1px solid #000; + border-radius: 50%; +} +.div-clock { + height: 25px; + width: 25px; + border-radius: 50%; + background-color: #000; + margin: 50%; + position: relative; +} +.Hour { + height: 100px; + width: 8px; + margin: 35%; + top: -85px; + position: relative; + background-color: rgb(122, 122, 122); + border-top-left-radius: 50%; + border-top-right-radius: 50%; + transform-origin: bottom; +} +.Minute { + height: 140px; + width: 6px; + margin: 37%; + top: -235px; + position: relative; + background-color: rgb(250, 0, 0); + border-top-left-radius: 50%; + border-top-right-radius: 50%; + transform-origin: bottom; +} +.Seconds { + height: 180px; + width: 4px; + margin: 42%; + top: -427px; + position: relative; + background-color: rgb(233, 250, 0); + border-top-left-radius: 50%; + border-top-right-radius: 50%; + transform-origin: bottom; +} + +#cen { + height: 0px; +} +.class_12 { + margin-top: -230px; + font-size: 42px; + margin-left: -25px; +} +.class_9 { + margin-top: 150px; + font-size: 42px; + margin-left: -210px; +} +.class_6 { + margin-top: 150px; + font-size: 42px; + margin-left: -10px; +} +.class_3{ + margin-top: -260px; + font-size: 42px; + margin-left: 185px; +} +/* .dia { + height: 15px; + width: 2px; + background: #000; + margin-top: -283px; + margin-left: 10px; + transform-origin: 50% 150px; +} +.dia:nth-of-type(5n) { + width: 4px; + height: 24px; + background: #000; +} */ + +ul { + margin: 0; + padding: 0; + list-style: none; + position: relative; +} + +li { + width: 2px; + height: 10px; + background-color: #000; + position: absolute; + left: 249px; + top: 0; + transform-origin: center 250px; +} + +li:nth-child(5n+1) { + height: 20px; +} \ No newline at end of file diff --git "a/\344\274\215\346\231\272\350\276\211/H5+Css3/\347\275\221\346\240\274\345\270\203\345\261\200/Css/index.css" "b/\344\274\215\346\231\272\350\276\211/H5+Css3/\347\275\221\346\240\274\345\270\203\345\261\200/Css/index.css" new file mode 100644 index 0000000000000000000000000000000000000000..824ababe86e3c2913f07d620a5eebeeb9235cd93 --- /dev/null +++ "b/\344\274\215\346\231\272\350\276\211/H5+Css3/\347\275\221\346\240\274\345\270\203\345\261\200/Css/index.css" @@ -0,0 +1,130 @@ +html, body { + height: 100%; + display: flex; + align-items: center; + justify-content: center; + background-color: #eaeaea; +} +.it{ + display: block; + width: 24px; + height: 24px; + margin: 4px; + background-color: black; + border-radius: 50%; +} +[class^='center'] { + background-color: white; + width: 104px; + height: 104px; + padding: 4px; + margin: 16px; + border-radius: 10%; + box-shadow: inset 0 5px white, inset 0 -5px #bbb, inset 5px 0 #d7d7d7, inset -5px 0 #d7d7d7; +} +.center_one{ + display: grid; + grid-template-columns: 34px 34px 34px; + grid-template-rows: 34px 34px 34px; +} +.center_one .it{ + grid-column: 2 / 3; + grid-row: 2 / 3; +} +.center_two{ + display: grid; + grid-template-columns: 34px 34px 34px; + grid-template-rows: 34px 34px 34px; +} +.center_two .it:nth-of-type(2){ + grid-column: 3 / 3; + grid-row: 3 / 3; +} + +.center_three { + display: grid; + grid-template-columns: 34px 34px 34px; + grid-template-rows: 34px 34px 34px; +} +.center_three .it:nth-of-type(2){ + grid-column: 2 / 3; + grid-row: 2 / 3; +} +.center_three .it:nth-of-type(3){ + grid-column: 3 / 3; + grid-row: 3 / 3; +} +.center_four{ + display: grid; + grid-template-columns: 34px 34px 34px; + grid-template-rows: 34px 34px 34px; + grid-template-areas: + 'a . b' + '. . .' + 'd . c'; +} +.center_four { + grid-area: a; +} +.center_four :nth-of-type(2) { + grid-area:d; +} +.center_four :nth-of-type(3) { + grid-area:b; +} +.center_four :nth-of-type(4) { + grid-area:c; +} + +.center_five{ + display: grid; + grid-template-columns: 34px 34px 34px; + grid-template-rows: 34px 34px 34px; + grid-template-areas: + 'a . b' + '. c .' + 'd . e'; +} +.center_five { + grid-area:a; +} +.center_five :nth-of-type(2) { + grid-area:d; +} +.center_five :nth-of-type(3) { + grid-area:b; +} +.center_five :nth-of-type(4) { + grid-area:c; +} +.center_five :nth-of-type(5) { + grid-area:e; +} + +.center_six{ + display: grid; + grid-template-columns: 34px 34px 34px; + grid-template-rows: 34px 34px 34px; + grid-template-areas: + 'a . b' + 'c . d' + 'e . f'; +} +.center_six { + grid-area:a; +} +.center_six :nth-of-type(2) { + grid-area:b; +} +.center_six :nth-of-type(3) { + grid-area:c; +} +.center_six :nth-of-type(4) { + grid-area:d; +} +.center_six :nth-of-type(5) { + grid-area:e; +} +.center_six :nth-of-type(6) { + grid-area:f; +} \ No newline at end of file diff --git "a/\344\274\215\346\231\272\350\276\211/H5+Css3/\347\275\221\346\240\274\345\270\203\345\261\200/Grid.html" "b/\344\274\215\346\231\272\350\276\211/H5+Css3/\347\275\221\346\240\274\345\270\203\345\261\200/Grid.html" new file mode 100644 index 0000000000000000000000000000000000000000..844bad12e1460cc538c7fa24a3e1c58927eebb6f --- /dev/null +++ "b/\344\274\215\346\231\272\350\276\211/H5+Css3/\347\275\221\346\240\274\345\270\203\345\261\200/Grid.html" @@ -0,0 +1,122 @@ + + + + + + + Document + + + +
+
50%
+
50%
+
+
+
33%
+
33%
+
33%
+
+
+
25%
+
25%
+
25%
+
25%
+ +
50%
+
50%
+
+ + \ No newline at end of file diff --git "a/\344\274\215\346\231\272\350\276\211/H5+Css3/\347\275\221\346\240\274\345\270\203\345\261\200/index.html" "b/\344\274\215\346\231\272\350\276\211/H5+Css3/\347\275\221\346\240\274\345\270\203\345\261\200/index.html" new file mode 100644 index 0000000000000000000000000000000000000000..88eab0ffabf0eb9daee6f415e97bde077c63de4c --- /dev/null +++ "b/\344\274\215\346\231\272\350\276\211/H5+Css3/\347\275\221\346\240\274\345\270\203\345\261\200/index.html" @@ -0,0 +1,48 @@ + + + + + + Document + + + +
+ +
+
+ + +
+
+ + + +
+
+ + + + + +
+
+ + + + + +
+
+ + + + + + +
+ + \ No newline at end of file diff --git "a/H5+Css3/\350\203\214\346\231\257\350\276\271\346\241\206\345\222\214\346\226\207\345\255\227\347\211\271\346\225\210/index.html" "b/\344\274\215\346\231\272\350\276\211/H5+Css3/\350\203\214\346\231\257\350\276\271\346\241\206\345\222\214\346\226\207\345\255\227\347\211\271\346\225\210/index.html" similarity index 100% rename from "H5+Css3/\350\203\214\346\231\257\350\276\271\346\241\206\345\222\214\346\226\207\345\255\227\347\211\271\346\225\210/index.html" rename to "\344\274\215\346\231\272\350\276\211/H5+Css3/\350\203\214\346\231\257\350\276\271\346\241\206\345\222\214\346\226\207\345\255\227\347\211\271\346\225\210/index.html" diff --git "a/\351\273\204\346\263\211\351\276\231/2021-11-17/demo01.html" "b/\351\273\204\346\263\211\351\276\231/2021-11-17/demo01.html" deleted file mode 100644 index 6a149408fb8c4b716cc2a08e3e61d4fb10814b5e..0000000000000000000000000000000000000000 --- "a/\351\273\204\346\263\211\351\276\231/2021-11-17/demo01.html" +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - Document - - - -
-
- - \ No newline at end of file diff --git "a/\351\273\204\346\263\211\351\276\231/2021-11-18/demo01.html" "b/\351\273\204\346\263\211\351\276\231/2021-11-18/demo01.html" deleted file mode 100644 index f78d59cfceeb84143f8819f394a737ad4b4f8ed1..0000000000000000000000000000000000000000 --- "a/\351\273\204\346\263\211\351\276\231/2021-11-18/demo01.html" +++ /dev/null @@ -1,190 +0,0 @@ - - - - - - Document - - - -

white-space

- -

word-break

- -

word-wrap

- -

word-spacing

- -

letter-spacing

- - - \ No newline at end of file diff --git "a/\351\273\204\346\263\211\351\276\231/2021-11-19/demo01.html" "b/\351\273\204\346\263\211\351\276\231/2021-11-19/demo01.html" deleted file mode 100644 index 28d613c791239d2a43b98c2f3d00619e0d58661d..0000000000000000000000000000000000000000 --- "a/\351\273\204\346\263\211\351\276\231/2021-11-19/demo01.html" +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - Document - - - - -

拖动滑块,改变RGB变量:

-

R:

-

G:

-

B:

- - - \ No newline at end of file diff --git "a/\351\273\204\346\263\211\351\276\231/2021-11-19/demo02.html" "b/\351\273\204\346\263\211\351\276\231/2021-11-19/demo02.html" deleted file mode 100644 index 4ad4f6ace8050f7d4fe8659c097927784224c761..0000000000000000000000000000000000000000 --- "a/\351\273\204\346\263\211\351\276\231/2021-11-19/demo02.html" +++ /dev/null @@ -1,185 +0,0 @@ - - - - - - Document - - - - -
-

按钮文字颜色随着背景色自动变化实例页面

- 回到相关文章 » -
-
-

效果:

-
-
- -

拖动滑块,改变RGB变量:

-

R:

-

G:

-

B:

-
-
-
-
-

代码:

-
-
CSS代码:
-
-        :root {
-          /* 定义RGB变量 */
-          --red: 44;
-          --green: 135;
-          --blue: 255;
-          /* 文字颜色变色的临界值,建议0.5~0.6 */
-          --threshold: 0.5;
-          /* 深色边框出现的临界值,范围0~1,推荐0.8+*/
-          --border-threshold: 0.8;
-        }
-        
-        .btn {
-          font-size: 150%;
-          padding: .5em 2em;
-        }
-        .btn {
-          /* 按钮背景色就是基本背景色 */
-          background: rgb(var(--red), var(--green), var(--blue));
-        
-          /** 
-           * 使用sRGB Luma方法计算灰度(可以看成亮度)
-           * 算法为:
-           * lightness = (red * 0.2126 + green * 0.7152 + blue * 0.0722) / 255
-          */
-          --r: calc(var(--red) * 0.2126);
-          --g: calc(var(--green) * 0.7152);
-          --b: calc(var(--blue) * 0.0722);
-          --sum: calc(var(--r) + var(--g) + var(--b));
-          
-          --lightness: calc(var(--sum) / 255);
-          
-          /**
-           * --lightness近似看成亮度,范围0~1,此时,和临界值--threshold做比较:
-           * 大于,则正数,和-999999%相乘,会得到一个巨大负数,浏览器会按照合法边界0%渲染,也就是亮度为0,于是颜色是黑色;
-           * 小于,则和-999999%相乘,会得到一个巨大的正数,以最大合法值100%渲染,于是颜色是白色;
-          */
-          color: hsl(0, 0%, calc((var(--lightness) - var(--threshold)) * -999999%));
-          
-          /**
-           * 确定边框透明度。
-           * 如果亮度比--border-threshold值大,在说明按钮背景色比较淡,我们出现一个深色边框;
-           * 如果亮度比较小,说明按钮背景色较深,没有必要出现边框。
-             此时,--border-alpha计算后为负值,透明度小于0的时候,浏览器会按照0渲染,因此,边框透明。
-          */
-          --border-alpha: calc((var(--lightness) - var(--border-threshold)) * 100);
-          /* 设置边框相关样式 */
-          border: .2em solid;
-          border-color: rgba(calc(var(--red) - 50), calc(var(--green) - 50), calc(var(--blue) - 50), var(--border-alpha));
-        }
-                        
-
HTML代码:
-
<button class="btn">我是按钮</button>
-        
-        <p>拖动滑块,改变RGB变量:</p>
-        <p>R:<input type="range" min="0" max="255" value="44" name="red"></p>
-        <p>G:<input type="range" min="0" max="255" value="135" name="green"></p>
-        <p>B:<input type="range" min="0" max="255" value="255" name="blue"></p>
-
JS代码:
-
-        var eleRanges = document.querySelectorAll('input[type="range"]');
-        Array.from(eleRanges).forEach(function (range) {
-            range.addEventListener('input', function () {
-                document.documentElement.style.setProperty('--' + this.name, this.value);    
-            });
-        });
-                        
-
-
-
-
- - - - - - \ No newline at end of file diff --git "a/\351\273\204\346\263\211\351\276\231/2021-11-24/demo01.html" "b/\351\273\204\346\263\211\351\276\231/2021-11-24/demo01.html" deleted file mode 100644 index 8a658b95be820c63fdceab55eba1252133472326..0000000000000000000000000000000000000000 --- "a/\351\273\204\346\263\211\351\276\231/2021-11-24/demo01.html" +++ /dev/null @@ -1,171 +0,0 @@ - - - - - - Document - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - \ No newline at end of file diff --git "a/\351\273\204\346\263\211\351\276\231/2021-11-24/demo02.html" "b/\351\273\204\346\263\211\351\276\231/2021-11-24/demo02.html" deleted file mode 100644 index 19a2b552b769e363c437b376ad85b5ff756aa745..0000000000000000000000000000000000000000 --- "a/\351\273\204\346\263\211\351\276\231/2021-11-24/demo02.html" +++ /dev/null @@ -1,185 +0,0 @@ - - - - - Document - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - \ No newline at end of file diff --git "a/\351\273\204\346\263\211\351\276\231/2021-11-25/demo01.html" "b/\351\273\204\346\263\211\351\276\231/2021-11-25/demo01.html" deleted file mode 100644 index b9bd7a66040f842ece314c4e4232dd2f8599e662..0000000000000000000000000000000000000000 --- "a/\351\273\204\346\263\211\351\276\231/2021-11-25/demo01.html" +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - Document - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - \ No newline at end of file diff --git "a/\351\273\204\346\263\211\351\276\231/2021-11-25/demo02.html" "b/\351\273\204\346\263\211\351\276\231/2021-11-25/demo02.html" deleted file mode 100644 index 0d88ceb0859903342613dfa48b708bd123beef6a..0000000000000000000000000000000000000000 --- "a/\351\273\204\346\263\211\351\276\231/2021-11-25/demo02.html" +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - Document - - - -
- - -
- - \ No newline at end of file diff --git "a/\351\273\204\346\263\211\351\276\231/2021-11-26/demo01.html" "b/\351\273\204\346\263\211\351\276\231/2021-11-26/demo01.html" deleted file mode 100644 index 3811c5afee762aa24eda9650692f62008967b1c8..0000000000000000000000000000000000000000 --- "a/\351\273\204\346\263\211\351\276\231/2021-11-26/demo01.html" +++ /dev/null @@ -1,121 +0,0 @@ - - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
- - \ No newline at end of file