From d442511366a70d3176a32f1efce2bbd9911f4a72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=9F=E6=96=87=E6=B7=AF?= <14131014+jiang-wenyu0212@user.noreply.gitee.com> Date: Wed, 9 Oct 2024 10:56:18 +0800 Subject: [PATCH 1/4] 1009 --- .../20241009-css\346\270\220\345\217\230.md" | 60 ++++++++++++++++++ ...ght-Mandarin-DV2917-800-Release-Date.jpeg" | Bin .../\345\233\276\347\211\207/image-1.png" | Bin .../\345\233\276\347\211\207/image-2.png" | Bin .../\345\233\276\347\211\207/image-3.png" | Bin .../\345\233\276\347\211\207/image-4.png" | Bin .../\345\233\276\347\211\207/image-5.png" | Bin .../\345\233\276\347\211\207/image-6.png" | Bin .../\345\233\276\347\211\207/image.png" | Bin 9 files changed, 60 insertions(+) create mode 100644 "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/20241009-css\346\270\220\345\217\230.md" rename "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/Kevin-Durant-Nike-KD-16-Vivid-Orange-Bright-Mandarin-DV2917-800-Release-Date.jpeg" => "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\345\233\276\347\211\207/Kevin-Durant-Nike-KD-16-Vivid-Orange-Bright-Mandarin-DV2917-800-Release-Date.jpeg" (100%) rename "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/image-1.png" => "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\345\233\276\347\211\207/image-1.png" (100%) rename "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/image-2.png" => "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\345\233\276\347\211\207/image-2.png" (100%) rename "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/image-3.png" => "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\345\233\276\347\211\207/image-3.png" (100%) rename "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/image-4.png" => "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\345\233\276\347\211\207/image-4.png" (100%) rename "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/image-5.png" => "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\345\233\276\347\211\207/image-5.png" (100%) rename "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/image-6.png" => "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\345\233\276\347\211\207/image-6.png" (100%) rename "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/image.png" => "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\345\233\276\347\211\207/image.png" (100%) diff --git "a/\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/20241009-css\346\270\220\345\217\230.md" "b/\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/20241009-css\346\270\220\345\217\230.md" new file mode 100644 index 0000000..b367ac8 --- /dev/null +++ "b/\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/20241009-css\346\270\220\345\217\230.md" @@ -0,0 +1,60 @@ +## 渐变 +1. 渐变分为线性渐变与径向渐变 +- 线性渐变 : 向下/向上/向左/向右对角方向 +- 径向渐变 : 由他们的中心定义 +## 线性渐变 +1. 为了创建一个线性渐变,你必须至少定义两种颜色节点。颜色节点即你想要呈现平稳过渡的颜色。同时,你也可以设置一个起点和一个方向(或一个角度) +2. 语法 :background-image: linear-gradient(direction,color-stopl, color-stop2,.....); +- 线性渐变 - 从上到下(默认情况下) +- 下面的实力演示了从顶部开始的线性渐变。起点是红色,慢慢过渡到蓝色 +- #grad{ +- background-image: linear-gradiient(#e66465, #9198e5): +- } +- 线性渐变-从左到右 +- #grad{ +- height: 200px ; +- background-image: linear-gradiient(to right, red , yellow): +- } +- 线性渐变-对角 +- #grad{ +- height: 200px ; +- background-image: linear-gradiient(to bottom right , red , yellow): +- } +- 使用角度 +- #grad{ +- background-image: linear-gradiient(90deg , red , yellow): +- } +- 使用多个颜色节点 +- #grad{ +- background-image: linear-gradiient(yed, yellow, green): +- } +- 下面的实例演示了如何创建一个带有彩虹颜色的文本和线性渐变 +- #grad { +- /* 标准的语法 */ +- background-image: linear-gradient(to right, red,orange,yellow,green,blue,- indigo,violet); +- } +## 径向渐变 (径向渐变由它的中心定义) +1. 为了创建一个径向渐变,你也必须至少定义两种颜色节点。颜色节点即你想要呈现平稳过渡的颜色。同时你也可以指定渐变的中心、形状、大小。默认情况下,渐变的中心是center(表示在中心点),渐变的形状是ellipse(表示椭圆形),渐变的大小是farthest-corner(表示到最远的角落)。 +- 语法 :background-image: radial-gradient(shape size at position, start-color, ..., last-color); +- 径向渐变 - 颜色节点均匀分布(默认情况下) +- 实例: 颜色节点均匀分布的径向渐变: +-#grad { +- background-image: radial-gradient(red, yellow, green); +- } +- 实例:颜色节点分布不均匀地径向渐变 +-#grad { +- background-image: radial-gradient(red 5%, yellow 15%, green 60 %); +- } +- 设置形状 +- shape 参数定义了形状。他可以是值circle 或ellipse 。 其中 , circle 表示圆形 , ellipse 表示椭圆形 , 默认值是ellipse +- 实例 : 形状为圆形的径向渐变: +-#grad { +- background-image: radial-gradient(circle, red, yellow, green); +- } +- 重复的径向渐变 +- repeating-radial-gradient()函数用于重复径向渐变 +- 实例 :一个重复的径向渐变 +-#grad { +- background-image: repeating-radial-gradient(red, yellow, green); +- } + diff --git "a/\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/Kevin-Durant-Nike-KD-16-Vivid-Orange-Bright-Mandarin-DV2917-800-Release-Date.jpeg" "b/\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\345\233\276\347\211\207/Kevin-Durant-Nike-KD-16-Vivid-Orange-Bright-Mandarin-DV2917-800-Release-Date.jpeg" similarity index 100% rename from "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/Kevin-Durant-Nike-KD-16-Vivid-Orange-Bright-Mandarin-DV2917-800-Release-Date.jpeg" rename to "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\345\233\276\347\211\207/Kevin-Durant-Nike-KD-16-Vivid-Orange-Bright-Mandarin-DV2917-800-Release-Date.jpeg" diff --git "a/\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/image-1.png" "b/\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\345\233\276\347\211\207/image-1.png" similarity index 100% rename from "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/image-1.png" rename to "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\345\233\276\347\211\207/image-1.png" diff --git "a/\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/image-2.png" "b/\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\345\233\276\347\211\207/image-2.png" similarity index 100% rename from "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/image-2.png" rename to "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\345\233\276\347\211\207/image-2.png" diff --git "a/\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/image-3.png" "b/\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\345\233\276\347\211\207/image-3.png" similarity index 100% rename from "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/image-3.png" rename to "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\345\233\276\347\211\207/image-3.png" diff --git "a/\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/image-4.png" "b/\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\345\233\276\347\211\207/image-4.png" similarity index 100% rename from "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/image-4.png" rename to "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\345\233\276\347\211\207/image-4.png" diff --git "a/\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/image-5.png" "b/\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\345\233\276\347\211\207/image-5.png" similarity index 100% rename from "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/image-5.png" rename to "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\345\233\276\347\211\207/image-5.png" diff --git "a/\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/image-6.png" "b/\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\345\233\276\347\211\207/image-6.png" similarity index 100% rename from "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/image-6.png" rename to "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\345\233\276\347\211\207/image-6.png" diff --git "a/\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/image.png" "b/\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\345\233\276\347\211\207/image.png" similarity index 100% rename from "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/image.png" rename to "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\345\233\276\347\211\207/image.png" -- Gitee From 92dad268e9757852bbae5de5550fdbab890710ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=9F=E6=96=87=E6=B7=AF?= <14131014+jiang-wenyu0212@user.noreply.gitee.com> Date: Wed, 9 Oct 2024 11:36:38 +0800 Subject: [PATCH 2/4] 1009 --- ...\351\241\271\347\273\203\344\271\240.html" | 35 ++++++++++++++++++ ...ght-Mandarin-DV2917-800-Release-Date.jpeg" | Bin .../image-1.png" | Bin .../image-2.png" | Bin .../image-3.png" | Bin .../image-4.png" | Bin .../image-5.png" | Bin .../image-6.png" | Bin .../image.png" | Bin 9 files changed, 35 insertions(+) create mode 100644 "\346\261\237\346\226\207\346\267\257/\344\275\234\344\270\232/\347\272\277\346\200\247\346\270\220\345\217\230\344\270\223\351\241\271\347\273\203\344\271\240.html" rename "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\345\233\276\347\211\207/Kevin-Durant-Nike-KD-16-Vivid-Orange-Bright-Mandarin-DV2917-800-Release-Date.jpeg" => "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/Kevin-Durant-Nike-KD-16-Vivid-Orange-Bright-Mandarin-DV2917-800-Release-Date.jpeg" (100%) rename "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\345\233\276\347\211\207/image-1.png" => "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/image-1.png" (100%) rename "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\345\233\276\347\211\207/image-2.png" => "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/image-2.png" (100%) rename "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\345\233\276\347\211\207/image-3.png" => "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/image-3.png" (100%) rename "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\345\233\276\347\211\207/image-4.png" => "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/image-4.png" (100%) rename "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\345\233\276\347\211\207/image-5.png" => "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/image-5.png" (100%) rename "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\345\233\276\347\211\207/image-6.png" => "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/image-6.png" (100%) rename "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\345\233\276\347\211\207/image.png" => "\346\261\237\346\226\207\346\267\257/\347\254\224\350\256\260/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/image.png" (100%) diff --git "a/\346\261\237\346\226\207\346\267\257/\344\275\234\344\270\232/\347\272\277\346\200\247\346\270\220\345\217\230\344\270\223\351\241\271\347\273\203\344\271\240.html" "b/\346\261\237\346\226\207\346\267\257/\344\275\234\344\270\232/\347\272\277\346\200\247\346\270\220\345\217\230\344\270\223\351\241\271\347\273\203\344\271\240.html" new file mode 100644 index 0000000..7b03615 --- /dev/null +++ "b/\346\261\237\346\226\207\346\267\257/\344\275\234\344\270\232/\347\272\277\346\200\247\346\270\220\345\217\230\344\270\223\351\241\271\347\273\203\344\271\240.html" @@ -0,0 +1,35 @@ + + +
+ + +