{"id":5441,"date":"2026-08-10T19:57:05","date_gmt":"2026-08-10T10:57:05","guid":{"rendered":"https:\/\/dennie.tokyo\/it\/?p=5441"},"modified":"2026-08-19T19:08:10","modified_gmt":"2026-08-19T10:08:10","slug":"%e3%80%90css%e3%80%91linear-gradient-%e5%9f%ba%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/dennie.tokyo\/it\/?p=5441","title":{"rendered":"\u3010CSS\u3011linear-gradient"},"content":{"rendered":"\n<p>linear-gradient \u306f CSS \u306e\u95a2\u6570\u3067\u3059\u3002linear-gradient\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u3068\u7dda\u5f62\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u304c\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<h1 class=\"wp-block-heading\">\u6982\u8981<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">\u8981\u7d20<\/h2>\n\n\n\n<p>\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3059\u308b\u8981\u7d20\u306f\u5927\u304d\u304f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u306e\u65b9\u5411 &#8211; side-or-corner<\/li>\n\n\n\n<li>\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u59cb\u3059\u308b\u4f4d\u7f6e &#8211; linear-color-stop<\/li>\n\n\n\n<li>\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u4e2d\u306e\u8272(\u88dc\u9593\u8272) &#8211; color-hint<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u30d7\u30ed\u30d1\u30c6\u30a3<\/h2>\n\n\n\n<p>background\u30d7\u30ed\u30d1\u30c6\u30a3\u306blinear-gradient\u95a2\u6570\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u308c\u306flinear-gradient\u95a2\u6570\u304cimage\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u7279\u6b8a\u578b\u3092\u8fd4\u5374\u3059\u308b\u70ba\u3067\u3059\u3002\u7c21\u5358\u306b\u8a00\u3046\u3068\u753b\u50cf\u3068\u3057\u3066\u6271\u308f\u308c\u308b\u3068\u3044\u3046\u611f\u3058\u3067\u3059\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u57fa\u672c<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">\u5358\u4e00\u8272<\/h2>\n\n\n\n<p>linear-gradient\u95a2\u6570\u306b\u4efb\u610f\u306e\u8272\u30921\u3064\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>CSS<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.gradient-simple {\n  background:linear-gradient(red);\n}<\/code><\/pre><\/div>\n\n\n\n<p><strong>\u7d50\u679c<\/strong><\/p>\n\n\n\n<p>\u6307\u5b9a\u3057\u305f\u8272(\u4eca\u56de\u306e\u4f8b\u306f\u8d64)\u306e\u307f\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<style>\n.box_01 {\n  height: 300px;\n  width: 300px;\n}\n.gradient-simple {\n  background:linear-gradient(red);\n}\n<\/style>\n<div class=\"box_01 gradient-simple\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u958b\u59cb\u8272\u3068\u7d42\u4e86\u8272<\/h2>\n\n\n\n<p>linear-gradient\u95a2\u6570\u306b\u4efb\u610f\u306e\u8272\u30922\u3064\u6307\u5b9a\u3057\u307e\u3059\u3002<br>\u3053\u306e\u5834\u5408\u3001\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u306e\u958b\u59cb\u8272\u3001\u7d42\u4e86\u8272\u306e\u6307\u5b9a\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>background:linear-gradient(\u958b\u59cb\u8272, \u7d42\u4e86\u8272);<\/code><\/pre><\/div>\n\n\n\n<p>\u4e0a\u304b\u3089\u4e0b\u3078\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u3055\u308c\u307e\u3059\u3002<br>\u4eca\u56de\u306e\u4f8b\u306e\u5834\u5408\u3001\u4e0a\u304b\u3089\u4e0b\u306b\u304b\u3051\u3066\u8d64\u304b\u3089\u9752\u306b\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>CSS<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.gradient-start-end {\n  background:linear-gradient(red, blue);\n}<\/code><\/pre><\/div>\n\n\n\n<p><strong>\u7d50\u679c<\/strong><\/p>\n\n\n\n<style>\n.box_02 {\n  height: 300px;\n  width: 300px;\n}\n.gradient-start-end {\n  background:linear-gradient(red, blue);\n}\n<\/style>\n<div class=\"box_02 gradient-start-end\"><\/div>\n\n\n\n<h1 class=\"wp-block-heading\">\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3059\u308b\u8981\u7d20<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u306e\u65b9\u5411 &#8211; side-or-corner<\/h2>\n\n\n\n<p>\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u306e\u65b9\u5411\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5782\u76f4\u3001\u6c34\u5e73\u65b9\u5411<\/h3>\n\n\n\n<p>to \u3068\u3044\u3046\u6587\u5b57\u306b\u7d9a\u304d\u3001\u5782\u76f4\u65b9\u5411\u306b\u3064\u3044\u3066 top\u3001bottom \u304c\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<br>\u6c34\u5e73\u65b9\u5411\u306b left\u3001right \u304c\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>to bottom<\/td><td>\u4e0a\u304b\u3089\u4e0b\u3078\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3002<\/td><\/tr><tr><td>to top<\/td><td>\u4e0b\u304b\u3089\u4e0a\u3078\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3<\/td><\/tr><tr><td>to right<\/td><td>\u5de6\u304b\u3089\u53f3\u3078\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3<\/td><\/tr><tr><td>to left<\/td><td>\u53f3\u304b\u3089\u5de6\u3078\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>HTML<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;div class=&quot;box gradient-bottom&quot;&gt;&lt;\/div&gt;\n&lt;br&gt;\n\n&lt;div class=&quot;box gradient-top&quot;&gt;&lt;\/div&gt;\n&lt;br&gt;\n\n&lt;div class=&quot;box gradient-right&quot;&gt;&lt;\/div&gt;\n&lt;br&gt;\n\n&lt;div class=&quot;box gradient-left&quot;&gt;&lt;\/div&gt;<\/code><\/pre><\/div>\n\n\n\n<p><strong>CSS<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.box {\n  height: 100px;\n  width: 100px;\n}\n\n.gradient-bottom {\n  background:linear-gradient(to bottom,red, blue); \/* \u4e0a\u304b\u3089\u4e0b\u3078\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3. \u6307\u5b9a\u3057\u306a\u3044\u5834\u5408 to bottom \u304c\u4f7f\u7528\u3055\u308c\u308b *\/\n}\n\n.gradient-top {\n  background:linear-gradient(to top,red, blue); \/* \u4e0b\u304b\u3089\u4e0a\u3078\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3 *\/\n}\n\n.gradient-right {\n  background:linear-gradient(to right,red, blue); \/* \u5de6\u304b\u3089\u53f3\u3078\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3 *\/\n}\n\n.gradient-left {\n  background:linear-gradient(to left,red, blue); \/* \u53f3\u304b\u3089\u5de6\u3078\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3 *\/\n}<\/code><\/pre><\/div>\n\n\n\n<p><strong>\u7d50\u679c<\/strong><\/p>\n\n\n\n<style>\n.box_10 {\n  height: 100px;\n  width: 100px;\n}\n.gradient-bottom_10 {\n  background:linear-gradient(to bottom,red, blue);\n}\n\n.gradient-top_10 {\n  background:linear-gradient(to top,red, blue);\n}\n\n.gradient-right_10 {\n  background:linear-gradient(to right,red, blue);\n}\n\n.gradient-left_10 {\n  background:linear-gradient(to left,red, blue);\n}\n<\/style>\n<div class=\"box_10 gradient-bottom_10\"><\/div>\n<br>\n\n<div class=\"box_10 gradient-top_10\"><\/div>\n<br>\n\n<div class=\"box_10 gradient-right_10\"><\/div>\n<br>\n\n<div class=\"box_10 gradient-left_10\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u659c\u3081\u65b9\u5411<\/h3>\n\n\n\n<p>\u5782\u76f4\u65b9\u5411\u3068\u6c34\u5e73\u65b9\u5411\u3092\u540c\u6642\u306b\u6307\u5b9a\u3059\u308b\u4e8b\u3067\u659c\u3081\u65b9\u5411\u304b\u3089\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>to bottom right<\/td><td>\u5de6\u4e0a\u304b\u3089\u53f3\u4e0b\u3078\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3<\/td><\/tr><tr><td>to bottom left<\/td><td>\u53f3\u4e0a\u304b\u3089\u5de6\u4e0b\u3078\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3<\/td><\/tr><tr><td>to top right<\/td><td>\u5de6\u4e0b\u304b\u3089\u53f3\u4e0a\u3078\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3<\/td><\/tr><tr><td>to top left<\/td><td>\u53f3\u4e0b\u304b\u3089\u5de6\u4e0a\u3078\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>HTML<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;div class=&quot;box gradient-bottom-right&quot;&gt;&lt;\/div&gt;\n&lt;br&gt;\n\n&lt;div class=&quot;box gradient-bottom-left&quot;&gt;&lt;\/div&gt;\n&lt;br&gt;\n\n&lt;div class=&quot;box gradient-top-right&quot;&gt;&lt;\/div&gt;\n&lt;br&gt;\n\n&lt;div class=&quot;box gradient-top-left&quot;&gt;&lt;\/div&gt;<\/code><\/pre><\/div>\n\n\n\n<p><strong>CSS<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.box {\n  height: 100px;\n  width: 100px;\n}\n\n.gradient-bottom-right {\n  background:linear-gradient(to bottom right,red, blue); \/* \u5de6\u4e0a\u304b\u3089\u53f3\u4e0b\u3078\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3 *\/\n}\n\n.gradient-bottom-left {\n  background:linear-gradient(to bottom left,red, blue); \/* \u53f3\u4e0a\u304b\u3089\u5de6\u4e0b\u3078\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3 *\/\n}\n\n.gradient-top-right {\n  background:linear-gradient(to top right,red, blue); \/* \u5de6\u4e0b\u304b\u3089\u53f3\u4e0a\u3078\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3 *\/\n}\n\n.gradient-top-left {\n  background:linear-gradient(to top left,red, blue); \/* \u53f3\u4e0b\u304b\u3089\u5de6\u4e0a\u3078\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3 *\/\n}<\/code><\/pre><\/div>\n\n\n\n<p><strong>\u7d50\u679c<\/strong><\/p>\n\n\n\n<style>\n.box_11 {\n  height: 100px;\n  width: 100px;\n}\n.gradient-bottom-right_11 {\n  background:linear-gradient(to bottom right,red, blue);\n}\n\n.gradient-bottom-left_11 {\n  background:linear-gradient(to bottom left,red, blue);\n}\n\n.gradient-top-right_11 {\n  background:linear-gradient(to top right,red, blue);\n}\n\n.gradient-top-left_11 {\n  background:linear-gradient(to top left,red, blue);\n}\n<\/style>\n<div class=\"box_11 gradient-bottom-right_11\"><\/div>\n<br>\n\n<div class=\"box_11 gradient-bottom-left_11\"><\/div>\n<br>\n\n<div class=\"box_11 gradient-top-right_11\"><\/div>\n<br>\n\n<div class=\"box_11 gradient-top-left_11\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u89d2\u5ea6 &#8211; angle<\/h3>\n\n\n\n<p>\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u306e\u65b9\u5411\u306b\u89d2\u5ea6\u3092\u6307\u5b9a\u51fa\u6765\u307e\u3059\u3002deg\u3068\u3044\u3046\u5358\u4f4d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br>0deg \u306f to top \u3068\u540c\u3058\u306b\u306a\u308a\u307e\u3059\u3002\u5024\u3092\u5897\u52a0\u3055\u305b\u308b\u3068\u89d2\u5ea6\u3082\u6642\u8a08\u56de\u308a\u306b\u5897\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>HTML<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;div class=&quot;box gradient-45&quot;&gt;&lt;\/div&gt;\n&lt;br&gt;\n\n&lt;div class=&quot;box gradient-135&quot;&gt;&lt;\/div&gt;\n&lt;br&gt;\n\n&lt;div class=&quot;box gradient-225&quot;&gt;&lt;\/div&gt;\n&lt;br&gt;\n\n&lt;div class=&quot;box gradient-315&quot;&gt;&lt;\/div&gt;<\/code><\/pre><\/div>\n\n\n\n<p><strong>CSS<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.box {\n  height: 100px;\n  width: 100px;\n}\n\n.gradient-45 {\n  background:linear-gradient(45deg,red, blue);\n}\n\n.gradient-135 {\n  background:linear-gradient(135deg,red, blue);\n}\n\n.gradient-225 {\n  background:linear-gradient(225deg,red, blue);\n}\n\n.gradient-315 {\n  background:linear-gradient(315deg,red, blue);\n}<\/code><\/pre><\/div>\n\n\n\n<p><strong>\u7d50\u679c<\/strong><\/p>\n\n\n\n<style>\n.box_20 {\n  height: 100px;\n  width: 100px;\n}\n.gradient-45 {\n  background:linear-gradient(45deg,red, blue);\n}\n\n.gradient-135 {\n  background:linear-gradient(135deg,red, blue);\n}\n\n.gradient-225 {\n  background:linear-gradient(225deg,red, blue);\n}\n\n.gradient-315 {\n  background:linear-gradient(315deg,red, blue);\n}\n<\/style>\n<div class=\"box_20 gradient-45\"><\/div>\n<br>\n\n<div class=\"box_20 gradient-135\"><\/div>\n<br>\n\n<div class=\"box_20 gradient-225\"><\/div>\n<br>\n\n<div class=\"box_20 gradient-315\"><\/div>\n\n\n\n<p>\u4ee5\u4e0b\u306f\u3001\u89d2\u5ea6\u3068\u65b9\u5411\u306e\u5bfe\u5fdc\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>0deg<\/td><td>to top<\/td><\/tr><tr><td>45deg<\/td><td>to top right<\/td><\/tr><tr><td>90deg<\/td><td>to right<\/td><\/tr><tr><td>135deg<\/td><td>to bottom right<\/td><\/tr><tr><td>180deg<\/td><td>to bottom<\/td><\/tr><tr><td>225deg<\/td><td>to bottom left<\/td><\/tr><tr><td>270deg<\/td><td>to left<\/td><\/tr><tr><td>315deg<\/td><td>to top left<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u59cb\u3059\u308b\u4f4d\u7f6e &#8211; linear-color-stop<\/h2>\n\n\n\n<p>\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u304c\u59cb\u307e\u308b\u4f4d\u7f6e\u3092\u6307\u5b9a\u51fa\u6765\u307e\u3059\u3002<br>\u8272\u6307\u5b9a\u306e\u5f8c\u306b % \u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>HTML<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;div class=&quot;box gradient-linear-color-stop-0&quot;&gt;&lt;\/div&gt;\n&lt;br&gt;\n\n&lt;div class=&quot;box gradient-linear-color-stop-30&quot;&gt;&lt;\/div&gt;\n&lt;br&gt;\n\n&lt;div class=&quot;box gradient-linear-color-stop-50&quot;&gt;&lt;\/div&gt;\n&lt;br&gt;\n\n&lt;div class=&quot;box gradient-linear-color-stop-80&quot;&gt;&lt;\/div&gt;\n&lt;br&gt;\n\n&lt;div class=&quot;box gradient-linear-color-stop-100&quot;&gt;&lt;\/div&gt;<\/code><\/pre><\/div>\n\n\n\n<p><strong>CSS<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.box {\n  height:150px;\n  width: 100%;\n}\n\n.gradient-linear-color-stop-0 {\n  background:linear-gradient(to right, red 0%, blue);\n}\n\n.gradient-linear-color-stop-30 {\n  background:linear-gradient(to right, red 30%, blue);\n}\n\n.gradient-linear-color-stop-50 {\n  background:linear-gradient(to right, red 50%, blue);\n}\n\n.gradient-linear-color-stop-80 {\n  background:linear-gradient(to right, red 80%, blue);\n}\n\n.gradient-linear-color-stop-100 {\n  background:linear-gradient(to right, red 100%, blue);\n}<\/code><\/pre><\/div>\n\n\n\n<p><strong>\u7d50\u679c<\/strong><\/p>\n\n\n\n<style>\n.box_30 {\n  height:150px;\n  width: 100%;\n}\n.gradient-linear-color-stop-0 {\n  background:linear-gradient(to right, red 0%, blue);\n}\n\n.gradient-linear-color-stop-30 {\n  background:linear-gradient(to right, red 30%, blue);\n}\n\n.gradient-linear-color-stop-50 {\n  background:linear-gradient(to right, red 50%, blue);\n}\n\n.gradient-linear-color-stop-80 {\n  background:linear-gradient(to right, red 80%, blue);\n}\n\n.gradient-linear-color-stop-100 {\n  background:linear-gradient(to right, red 100%, blue);\n}\n<\/style>\n<div class=\"box_30 gradient-linear-color-stop-0\"><\/div>\n<br>\n<div class=\"box_30 gradient-linear-color-stop-30\"><\/div>\n<br>\n<div class=\"box_30 gradient-linear-color-stop-50\"><\/div>\n<br>\n<div class=\"box_30 gradient-linear-color-stop-80\"><\/div>\n<br>\n<div class=\"box_30 gradient-linear-color-stop-100\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u4e2d\u306e\u8272(\u88dc\u9593\u8272) \u2013 color-hint<\/h2>\n\n\n\n<p>\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u306f\u958b\u59cb\u8272\u304b\u3089\u7d42\u4e86\u8272\u3078\u3068\u8272\u304c\u5909\u308f\u308a\u307e\u3059\u304c\u3001\u8272\u306e\u5909\u308f\u308a\u65b9\u3092\u6307\u5b9a\u3059\u308b\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002\u3053\u306e\u8272\u306e\u5909\u308f\u308a\u65b9(\u88dc\u9593\u8272)\u306e\u6307\u5b9a\u3092\u5909\u3048\u308b\u3060\u3051\u3067\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u306e\u898b\u305f\u76ee\u304c\u5927\u304d\u304f\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u88dc\u9593\u306b\u3064\u3044\u3066<\/h3>\n\n\n\n<p>\u307e\u305a\u3001\u62bc\u3055\u3048\u3066\u304a\u304d\u305f\u3044\u306e\u304c\u3001\u88dc\u9593\u306e\u65b9\u6cd5\u306f\u5927\u304d\u304f2\u3064\u3042\u308b\u3053\u3068\u3067\u3059\u3002<br>\u3053\u308c\u3089\u306e\u8a73\u3057\u3044\u8aac\u660e\u306f\u9577\u304f\u306a\u308b\u306e\u3067\u7701\u7565\u3055\u305b\u3066\u9802\u304d\u307e\u3059\u3002<br>\u898b\u304b\u3051\u305f\u3089\u8abf\u3079\u308b\u3088\u3046\u306b\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u76f4\u4ea4\u8272\u7a7a\u9593<\/li>\n\n\n\n<li>\u5186\u7b52\u8272\u7a7a\u9593<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u88dc\u9593\u8272\u306e\u6307\u5b9a<\/h3>\n\n\n\n<p>\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u3055\u308c\u308b\u9593\u306e\u8272(\u88dc\u9593\u8272)\u3092\u3069\u306e\u3088\u3046\u306b\u3059\u308b\u304b\u3092\u6307\u5b9a\u51fa\u6765\u307e\u3059\u3002<br>in \u306e\u5f8c\u306b\u88dc\u9593\u3059\u308b\u65b9\u6cd5\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u76f4\u4ea4\u8272\u7a7a\u9593\u7cfb\u306e\u88dc\u9593\u8272\u306e\u6307\u5b9a<\/h4>\n\n\n\n<p>srgb\u3001srgb-linear\u3001oklab \u306a\u3069\u304c\u3042\u308a\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306f oklab \u3067\u3059\u3002<\/p>\n\n\n\n<p><strong>HTML<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;div class=&quot;box-01 gradient-srgb&quot;&gt;&lt;\/div&gt;\n&lt;br&gt;\n\n&lt;div class=&quot;box-01 gradient-srgb-linear&quot;&gt;&lt;\/div&gt;\n&lt;br&gt;\n\n&lt;div class=&quot;box-01 gradient-oklab&quot;&gt;&lt;\/div&gt;<\/code><\/pre><\/div>\n\n\n\n<p><strong>CSS<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.box {\n  height:150px;\n  width: 100%;\n}\n\n.gradient-srgb {\n  background:linear-gradient(to right in srgb, red, blue);\n}\n\n.gradient-srgb-linear {\n  background:linear-gradient(to right in srgb-linear, red, blue);\n}\n\n.gradient-oklab {\n  background:linear-gradient(to right in oklab, red, blue);\n}<\/code><\/pre><\/div>\n\n\n\n<p><strong>\u7d50\u679c<\/strong><\/p>\n\n\n\n<style>\n.box_40 {\n  height:150px;\n  width: 100%;\n}\n.gradient-srgb {\n  background:linear-gradient(to right in srgb, red, blue);\n}\n\n.gradient-srgb-linear {\n  background:linear-gradient(to right in srgb-linear, red, blue);\n}\n\n.gradient-oklab {\n  background:linear-gradient(to right in oklab, red, blue);\n}\n<\/style>\n<div class=\"box_40 gradient-srgb\"><\/div>\n<br>\n<div class=\"box_40 gradient-srgb-linear\"><\/div>\n<br>\n<div class=\"box_40 gradient-oklab\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">\u5186\u7b52\u8272\u7a7a\u9593\u7cfb\u306e\u88dc\u9593\u8272\u306e\u6307\u5b9a<\/h4>\n\n\n\n<p>hsl\u3001hwb\u3001lch\u3001oklch \u306a\u3069\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>HTML<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;div class=&quot;box gradient-hsl&quot;&gt;&lt;\/div&gt;\n&lt;br&gt;\n\n&lt;div class=&quot;box gradient-lch&quot;&gt;&lt;\/div&gt;\n&lt;br&gt;\n\n&lt;div class=&quot;box gradient-oklch&quot;&gt;&lt;\/div&gt;<\/code><\/pre><\/div>\n\n\n\n<p><strong>CSS<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.box {\n  height:150px;\n  width: 100%;\n}\n\n.gradient-hsl {\n  background:linear-gradient(to right in hsl, red, blue);\n}\n\n.gradient-lch {\n  background:linear-gradient(to right in lch, red, blue);\n}\n\n.gradient-oklch {\n  background:linear-gradient(to right in oklch, red, blue);\n}<\/code><\/pre><\/div>\n\n\n\n<p><strong>\u7d50\u679c<\/strong><\/p>\n\n\n\n<style>\n.box_41 {\n  height:150px;\n  width: 100%;\n}\n.gradient-hsl {\n  background:linear-gradient(to right in hsl, red, blue);\n}\n\n.gradient-lch {\n  background:linear-gradient(to right in lch, red, blue);\n}\n\n.gradient-oklch {\n  background:linear-gradient(to right in oklch, red, blue);\n}\n<\/style>\n<div class=\"box_41 gradient-hsl\"><\/div>\n<br>\n<div class=\"box_41 gradient-lch\"><\/div>\n<br>\n<div class=\"box_41 gradient-oklch\"><\/div>\n\n\n\n<h1 class=\"wp-block-heading\">\u8907\u6570\u8272\u306e\u6307\u5b9a<\/h1>\n\n\n\n<p>\u3053\u308c\u307e\u3067\u306f\u958b\u59cb\u8272\u3001\u7d42\u4e86\u8272\u306e2\u8272\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u8907\u6570\u8272\u3092\u6307\u5b9a\u3059\u308b\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002\u958b\u59cb\u8272\u3001\u7d42\u4e86\u8272\u306e\u9593\u306b\u7d4c\u7531\u8272\u3068\u3057\u3066\u6307\u5b9a\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>background:linear-gradient(\u958b\u59cb\u8272, \u7d4c\u7531\u82721, \u7d4c\u7531\u82722, .. \u7d4c\u7531\u8272N, \u7d42\u4e86\u8272);<\/code><\/pre><\/div>\n\n\n\n<p>\u4ee5\u4e0b\u306f3\u8272\u3092\u6307\u5b9a\u3057\u305f\u4f8b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>HTML<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;div class=&quot;box gradient-3-colors&quot;&gt;&lt;\/div&gt;\n&lt;br&gt;\n\n&lt;div class=&quot;box gradient-3-colors-p&quot;&gt;&lt;\/div&gt;<\/code><\/pre><\/div>\n\n\n\n<p><strong>CSS<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.box {\n  height:150px;\n  width: 100%;\n}\n\n.gradient-3-colors {\n  background:linear-gradient(to right in oklab, red, blue, green);\n}\n\n.gradient-3-colors-p {\n  background:linear-gradient(to right in oklab, red 20%, blue 60%, green);\n}<\/code><\/pre><\/div>\n\n\n\n<p><strong>\u7d50\u679c<\/strong><\/p>\n\n\n\n<style>\n.box_50 {\n  height:150px;\n  width: 100%;\n}\n.gradient-3-colors {\n  background:linear-gradient(to right in oklab, red, blue, green);\n}\n\n.gradient-3-colors-p {\n  background:linear-gradient(to right in oklab, red 20%, blue 60%, green);\n}\n<\/style>\n<div class=\"box_50 gradient-3-colors\"><\/div>\n<br>\n<div class=\"box_50 gradient-3-colors-p\"><\/div>\n\n\n\n<h1 class=\"wp-block-heading\">\u305d\u306e\u4ed6<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">background-image<\/h2>\n\n\n\n<p>\u4eca\u307e\u3067\u306fbackground\u30d7\u30ed\u30d1\u30c6\u30a3\u306blinear-gradient\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001background-image\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u3082\u6307\u5b9a\u51fa\u6765\u307e\u3059\u3002\u3053\u308c\u306flinear-gradient\u95a2\u6570\u304cimage\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u7279\u6b8a\u578b\u3092\u8fd4\u5374\u3059\u308b\u70ba\u3067\u3059\u3002<\/p>\n\n\n\n<p><strong>CSS<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.gradient-image-start-end {\n  background-image:linear-gradient(red, blue);\n}<\/code><\/pre><\/div>\n\n\n\n<p><strong>\u7d50\u679c<\/strong><\/p>\n\n\n\n<style>\n.box_60 {\n  height: 300px;\n  width: 300px;\n}\n.gradient-image-start-end {\n  background-image:linear-gradient(red, blue);\n}\n<\/style>\n<div class=\"box_60 gradient-image-start-end\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">transparent\u306e\u5fdc\u7528<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u57fa\u672c<\/h3>\n\n\n\n<p>\u8272\u306e\u6307\u5b9a\u306btransparent\u3092\u4f7f\u7528\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>CSS<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.gradient-image-start-transparent {\n  background:linear-gradient(transparent, blue);\n}\n\n.gradient-image-end-transparent {\n  background:linear-gradient(red, transparent);\n}<\/code><\/pre><\/div>\n\n\n\n<p><strong>\u7d50\u679c<\/strong><\/p>\n\n\n\n<style>\n.box_61 {\n  height: 300px;\n  width: 300px;\n}\n.gradient-image-start-transparent {\n  background:linear-gradient(transparent, blue);\n}\n\n.gradient-image-end-transparent {\n  background:linear-gradient(red, transparent);\n}\n\n<\/style>\n<div class=\"box_61 gradient-image-start-transparent\"><\/div>\n<br>\n<div class=\"box_61 gradient-image-end-transparent\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u958b\u59cb\u8272\u306etransparent\u6307\u5b9a<\/h3>\n\n\n\n<p>\u958b\u59cb\u8272\u306btransparent\u3092\u6307\u5b9a\u3057\u958b\u59cb\u4f4d\u7f6e\u3001\u7d42\u4e86\u4f4d\u7f6e\u3092\u305d\u308c\u305e\u308c\u6307\u5b9a\u3057\u3066\u307f\u307e\u3059\u3002\u900f\u660e(transparent)\u306e\u7bc4\u56f2\u304c\u7d42\u4e86\u8272\u306e\u5272\u5408\u3068\u540c\u3058\u304b\u591a\u3044\u5834\u5408\u3001\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u304c\u884c\u308f\u308c\u305a\u3001\u7a81\u7136\u7d42\u4e86\u8272\u304c\u59cb\u307e\u308b\u3088\u3046\u306b\u898b\u53d7\u3051\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>CSS<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.gradient-image-start-transparent-pos-30 {\n  background:linear-gradient(transparent 30%, blue 70%);\n}\n\n.gradient-image-start-transparent-pos-49 {\n  background:linear-gradient(transparent 49%, blue 51%);\n}\n\n.gradient-image-start-transparent-pos-50 {\n  background:linear-gradient(transparent 50%, blue 50%);\n}\n\n.gradient-image-start-transparent-pos-70 {\n  background:linear-gradient(transparent 70%, blue 30%);\n}<\/code><\/pre><\/div>\n\n\n\n<p><strong>\u7d50\u679c<\/strong><\/p>\n\n\n\n<style>\n.box_62 {\n  height: 300px;\n  width: 300px;\n}\n\n.gradient-image-start-transparent-pos-30 {\n  background:linear-gradient(transparent 30%, blue 70%);\n}\n\n.gradient-image-start-transparent-pos-49 {\n  background:linear-gradient(transparent 49%, blue 51%);\n}\n\n.gradient-image-start-transparent-pos-50 {\n  background:linear-gradient(transparent 50%, blue 50%);\n}\n\n.gradient-image-start-transparent-pos-70 {\n  background:linear-gradient(transparent 70%, blue 30%);\n}\n\n<\/style>\n<div class=\"box_62 gradient-image-start-transparent-pos-30\"><\/div>\n<br>\n<div class=\"box_62 gradient-image-start-transparent-pos-49\"><\/div>\n<br>\n<div class=\"box_62 gradient-image-start-transparent-pos-50\"><\/div>\n<br>\n<div class=\"box_62 gradient-image-start-transparent-pos-70\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u7d42\u4e86\u8272\u306etransparent\u6307\u5b9a<\/h3>\n\n\n\n<p>\u7d42\u4e86\u8272\u306btransparent\u3092\u6307\u5b9a\u3057\u958b\u59cb\u4f4d\u7f6e\u3001\u7d42\u4e86\u4f4d\u7f6e\u3092\u305d\u308c\u305e\u308c\u6307\u5b9a\u3057\u3066\u307f\u307e\u3059\u3002\u900f\u660e(transparent)\u306e\u7bc4\u56f2\u304c\u958b\u59cb\u8272\u306e\u5272\u5408\u3068\u540c\u3058\u304b\u5c11\u306a\u3044\u5834\u5408\u3001\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u304c\u884c\u308f\u308c\u305a\u3001\u7a81\u7136\u958b\u59cb\u8272\u304c\u6d88\u3048\u308b\u3088\u3046\u306b\u898b\u53d7\u3051\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>CSS<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.gradient-image-end-transparent-pos-30 {\n  background:linear-gradient(red 30%, transparent 70%);\n}\n\n.gradient-image-end-transparent-pos-49 {\n  background:linear-gradient(red 49%, transparent 51%);\n}\n\n.gradient-image-end-transparent-pos-50 {\n  background:linear-gradient(red 50%, transparent 50%);\n}\n\n.gradient-image-end-transparent-pos-70 {\n  background:linear-gradient(red 70%, transparent 30%);\n}<\/code><\/pre><\/div>\n\n\n\n<p><strong>\u7d50\u679c<\/strong><\/p>\n\n\n\n<style>\n.box_63 {\n  height: 300px;\n  width: 300px;\n}\n\n.gradient-image-end-transparent-pos-30 {\n  background:linear-gradient(red 30%, transparent 70%);\n}\n\n.gradient-image-end-transparent-pos-49 {\n  background:linear-gradient(red 49%, transparent 51%);\n}\n\n.gradient-image-end-transparent-pos-50 {\n  background:linear-gradient(red 50%, transparent 50%);\n}\n\n.gradient-image-end-transparent-pos-70 {\n  background:linear-gradient(red 70%, transparent 30%);\n}\n\n<\/style>\n<div class=\"box_63 gradient-image-end-transparent-pos-30\"><\/div>\n<br>\n<div class=\"box_63 gradient-image-end-transparent-pos-49\"><\/div>\n<br>\n<div class=\"box_63 gradient-image-end-transparent-pos-50\"><\/div>\n<br>\n<div class=\"box_63 gradient-image-end-transparent-pos-70\"><\/div>\n\n\n\n<h1 class=\"wp-block-heading\">\u6700\u5f8c\u306b<\/h1>\n\n\n\n<p>\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u306f\u8272\u79d1\u5b66\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>linear-gradient \u306f CSS \u306e\u95a2\u6570\u3067\u3059\u3002linear-gradient\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u3068\u7dda\u5f62\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u304c\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":4723,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-5441","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css"],"_links":{"self":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts\/5441","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5441"}],"version-history":[{"count":33,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts\/5441\/revisions"}],"predecessor-version":[{"id":5521,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts\/5441\/revisions\/5521"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/media\/4723"}],"wp:attachment":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}