{"id":9384,"date":"2020-04-20T23:18:57","date_gmt":"2020-04-20T15:18:57","guid":{"rendered":"https:\/\/www.zhangxinxu.com\/wordpress\/?p=9384"},"modified":"2020-04-20T23:18:57","modified_gmt":"2020-04-20T15:18:57","slug":"css-conic-gradient","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2020\/04\/css-conic-gradient\/","title":{"rendered":"CSS conic-gradient()\u9525\u5f62\u6e10\u53d8\u7b80\u4ecb"},"content":{"rendered":"<p>by <a href=\"https:\/\/www.zhangxinxu.com\/\">zhangxinxu<\/a> from <a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=9384\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=9384<\/a><br \/>\n\u672c\u6587\u6b22\u8fce\u5206\u4eab\u4e0e\u805a\u5408\uff0c\u5168\u6587\u8f6c\u8f7d\u5c31\u4e0d\u5fc5\u4e86\uff0c\u5c0a\u91cd\u7248\u6743\uff0c\u5708\u5b50\u5c31\u8fd9\u4e48\u5927\uff0c\u82e5\u6025\u7528\u53ef\u4ee5\u8054\u7cfb\u6388\u6743\u3002<\/p>\n<p><script>window.wxShareImgUrl = 'https:\/\/www.zhangxinxu.com\/study\/image\/share\/202004-conic-gradient.jpg';<\/script><\/p>\n<h3>\u4e00\u3001\u4e3a\u4ec0\u4e48\u53eb\u505a\u9525\u5f62\u6e10\u53d8<\/h3>\n<p>\u56e0\u4e3a\u9525\u5f62\u6e10\u53d8\u53ef\u4ee5\u5b9e\u73b0\u5c16\u9525\u4e00\u6837\u7684\u6548\u679c\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/202004\/conic3.png\" width=\"300\" height=\"200\" alt=\"\u5c16\u9525\u6548\u679c\u793a\u610f\" class=\"alignnone size-medium\" \/><\/p>\n<p>CSS\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre>.example {\r\n    width: 300px; height: 300px;\r\n    background: conic-gradient(from 45deg, white, black, white);\r\n}<\/pre>\n<h3>\u4e8c\u3001\u9525\u5f62\u6e10\u53d8\u7684\u8bed\u6cd5<\/h3>\n<p>\u9525\u5f62\u6e10\u53d8\u7684\u6b63\u5f0f\u8bed\u6cd5\u5982\u4e0b\uff1a<\/p>\n<pre>conic-gradient( [ from &lt;angle&gt; ]? [ at &lt;position&gt; ]?, &lt;angular-color-stop-list&gt; )<\/pre>\n<p>\u53ef\u4ee5\u770b\u51fa\u9525\u5f62\u6e10\u53d8\u75313\u90e8\u5206\u7ec4\u6210\uff1a<\/p>\n<ol>\n<li>\u8d77\u59cb\u89d2\u5ea6<\/li>\n<li>\u4e2d\u5fc3\u4f4d\u7f6e<\/li>\n<li>\u89d2\u6e10\u53d8\u65ad\u70b9<\/li>\n<\/ol>\n<p>\u5176\u4e2d\u8d77\u59cb\u89d2\u5ea6\u548c\u4e2d\u5fc3\u4f4d\u7f6e\u90fd\u662f\u53ef\u4ee5\u7701\u7565\u7684\uff0c\u56e0\u6b64\uff0c\u6700\u7b80\u5355\u7684\u9525\u5f62\u6e10\u53d8\u7528\u6cd5\u5982\u4e0b\uff0c\u4f7f\u7528\u6211<span class=\"hidden\">\u5f20\u946b\u65ed<\/span>\u6700\u7231\u7684\u6df1\u5929\u7a7a\u84dd\u8272\uff1a<\/p>\n<pre>.example {\r\n    width: 300px; height: 150px;\r\n    background-image: conic-gradient(white, deepskyblue);\r\n}<\/pre>\n<p>\u6548\u679c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202004\/5-24_conica-gradient-simple.png\" loading=\"lazy\" width=\"300\" height=\"150\" alt=\"\u767d\u8272\u5230\u6df1\u5929\u84dd\u8272\u9525\u5f62\u6e10\u53d8\u6548\u679c\u56fe\"><\/p>\n<p>\u4e0a\u56fe\u5177\u4f53\u6e32\u67d3\u7684\u7ec6\u8282\u6211<span class=\"hidden\">\u5f20\u946b\u65ed<\/span>\u4e13\u95e8\u505a\u4e86\u4e2a\u56fe\u6807\u6ce8\u4e86\u4e0b\uff0c\u65b9\u4fbf\u5927\u5bb6\u5b66\u4e60\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202004\/conic-render.png\" loading=\"lazy\" width=\"332\" height=\"178\" alt=\"\u9525\u5f62\u6e10\u53d8\u6e32\u67d3\u539f\u7406\u7b80\u5355\u793a\u610f\"><\/p>\n<p>\u4e0a\u9762\u7684\u539f\u7406\u793a\u610f\u56fe\u7a76\u7adf\u6b63\u4e0d\u6b63\u786e\u5462\uff1f<\/p>\n<p>\u6211\u4eec\u4e0d\u59a8\u4fee\u6539\u51e0\u4e2a\u53c2\u6570\u503c\uff0c\u4f8b\u5982\u6539\u53d8\u4e0b\u8d77\u59cb\u89d2\u5ea6\u548c\u4e2d\u5fc3\u4f4d\u7f6e\uff0c\u770b\u770b\u9525\u5f62\u6e10\u53d8\u6548\u679c\u662f\u600e\u6837\u7684\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre>conic-gradient(from 45deg at 25% 25%, white, deepskyblue);<\/pre>\n<p>\u7ed3\u679c\u6e10\u53d8\u8d77\u59cb\u89d2\u5ea6\u6539\u621045\u5ea6\uff0c\u4e2d\u5fc3\u70b9\u4f4d\u7f6e\u79fb\u52a8\u5230\u76f8\u5bf9\u5143\u7d20\u5de6\u4e0a\u89d225%\u7684\u4f4d\u7f6e\uff0c\u6548\u679c\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202004\/5-26_conic-move.png\" loading=\"lazy\" width=\"300\" height=\"150\" alt=\"45\u5ea6\u8d77\u59cb\u89d2\u5ea6\u9525\u5f62\u6e10\u53d8\u6548\u679c\u56fe\"><\/p>\n<h4>\u9525\u5f62\u6e10\u53d8\u7684\u989c\u8272\u65ad\u70b9<\/h4>\n<p>\u9525\u5f62\u6e10\u53d8\u7684\u989c\u8272\u65ad\u70b9\u6570\u636e\u7c7b\u578b\u662f<code>&lt;angular-color-stop-list&gt;<\/code>\uff0c\u987e\u540d\u601d\u4e49\u662f\u89d2\u989c\u8272\u65ad\u70b9\u5217\u8868\uff0c\u6709\u522b\u4e8e\u7ebf\u6027\u6e10\u53d8\u548c\u5f84\u5411\u6e10\u53d8\u7684\u65ad\u70b9\u5217\u8868\uff0c\u4f7f\u7528\u7684\u662f\u89d2\u5ea6\u503c\uff0c\u800c\u975e\u957f\u5ea6\u503c\u3002<\/p>\n<p>\u4f8b\u5982\uff1a<\/p>\n<pre>conic-gradient(white, deepskyblue 45deg, white);<\/pre>\n<p><code>deepskyblue 45deg<\/code>\u8fd9\u91cc\u4f7f\u7528\u7684\u662f<code>'45deg'<\/code>\u662f\u4e2a\u89d2\u5ea6\u503c\uff0c\u4e8e\u662f\u4ef0\u671b\u946b\u7a7a\u95f4\uff0c\u53ef\u4ee5\u660e\u663e\u770b\u52302\u70b9\u949f\u65b9\u5411\u7684\u989c\u8272\u6700\u6df1\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202004\/5-27_conic-angle-stop.png\" loading=\"lazy\" width=\"300\" height=\"150\" alt=\"\u4f7f\u7528\u89d2\u5ea6\u503c\u8bbe\u7f6e\u65ad\u70b9\u6548\u679c\u622a\u56fe\"><\/p>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u89d2\u6e10\u53d8\u65ad\u70b9\u4e2d\u8bbe\u7f6e\u7684\u89d2\u5ea6\u503c\u662f\u4e00\u4e2a\u76f8\u5bf9\u89d2\u5ea6\u503c\uff0c\u6700\u7ec8\u6e32\u67d3\u7684\u89d2\u5ea6\u503c\u662f\u548c\u8d77\u59cb\u89d2\u5ea6\u7d2f\u52a0\u7684\u503c\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre>conic-gradient(from 45deg, white, deepskyblue 45deg, white);<\/pre>\n<p>\u6b64\u65f6<code>deepskyblue<\/code>\u5b9e\u9645\u6e32\u67d3\u7684\u5750\u6807\u89d2\u5ea6\u662f<code>90deg\uff0845deg + 45deg\uff09<\/code>\uff0c\u6548\u679c\u5982\u56fe\u4e0b\u56fe\u6240\u793a\uff0c\u53ef\u4ee5\u660e\u663e\u770b\u52303\u70b9\u949f\u65b9\u5411\u7684\u989c\u8272\u6700\u6df1\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202004\/5-28_conic-angle-relative.png\" loading=\"lazy\" width=\"300\" height=\"150\" alt=\"\u6e10\u53d8\u65ad\u70b9\u89d2\u5ea6\u503c\u662f\u76f8\u5bf9\u503c\u6548\u679c\u793a\u610f\"><\/p>\n<p>\u6709\u6b64\u53ef\u89c1\uff0c\u9525\u5f62\u6e10\u53d8\u4e2d\u989c\u8272\u65ad\u70b9\u89d2\u5ea6\u503c\u548c\u767e\u5206\u6bd4\u503c\u6ca1\u6709\u4ec0\u4e48\u533a\u522b\uff0c\u4e24\u8005\u53ef\u4ee5\u4e92\u76f8\u8f6c\u6362\uff0c\u4e00\u4e2a\u5b8c\u6574\u7684\u65cb\u8f6c\u603b\u5171360\u5ea6\uff0c\u56e0\u6b64\uff0c45deg\u7b49\u540c\u4e8e12.5%\uff0c\u56e0\u6b64\uff0c\u4e0b\u9762\u4e24\u6bb5CSS\u6548\u679c\u662f\u4e00\u6a21\u4e00\u6837\u7684\uff1a<\/p>\n<pre><span style=\"color:green\">\/* \u4e0b\u9762\u4e24\u6bb5\u8bed\u53e5\u6548\u679c\u4e00\u6837 *\/<\/span>\r\nconic-gradient(white, deepskyblue 45deg, white);\r\nconic-gradient(white, deepskyblue 12.5%, white);<\/pre>\n<p>\u5982\u679c\u662f\u6e10\u53d8\u8f6c\u6362\u70b9\uff0c\u89d2\u5ea6\u503c\u548c\u767e\u5206\u6bd4\u503c\u4e5f\u662f\u4e5f\u4e92\u76f8\u8f6c\u6362\u7684\uff0c\u4f8b\u5982\u4e0b\u9762\u7684\u4e24\u6761\u8bed\u53e5\u90fd\u662f\u5408\u6cd5\u7684\uff1a<\/p>\n<pre><span style=\"color:green\">\/* \u5408\u6cd5 *\/<\/span>\r\nconic-gradient(white, 12.5%, deepskyblue);\r\n<span style=\"color:green\">\/* \u5408\u6cd5 *\/<\/span>\r\nconic-gradient(white, 45deg, deepskyblue);<\/pre>\n<p>\u6548\u679c\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u628a\u6e10\u53d8\u4e2d\u95f4\u989c\u8272\u79fb\u52a8\u5230\u4e8612.5%\u7684\u4f4d\u7f6e\uff08\u539f\u6765\u662f\u572850%\u4f4d\u7f6e\u5904\uff09\uff0c\u56e0\u6b64\u6e10\u53d8\u7684\u540e\u534a\u90e8\u5206\u989c\u8272\u5c31\u6bd4\u8f83\u6df1\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202004\/5-29_conic-angle-hint.png\" loading=\"lazy\" width=\"300\" height=\"150\" alt=\"\u6e10\u53d8\u8f6c\u6362\u70b9\u79fb\u52a8\u523012.5%\u4f4d\u7f6e\u5904\u7684\u6548\u679c\u622a\u56fe\"><\/p>\n<h3>\u4e09\u3001\u9525\u5f62\u6e10\u53d8\u7684\u5e94\u7528<\/h3>\n<p>\u9525\u5f62\u6e10\u53d8\u53ef\u4ee5\u975e\u5e38\u65b9\u4fbf\u5730\u5b9e\u73b0\u997c\u56fe\u6548\u679c\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre>.pie {\r\n    width: 150px; height: 150px;\r\n    border-radius: 50%;\r\n    background: conic-gradient(yellowgreen 40%, gold 0deg 75%, deepskyblue 0deg);   \r\n}<\/pre>\n<style>.pie { width: 150px; height: 150px;    border-radius: 50%;  background:deepskyblue;  background: conic-gradient(yellowgreen 40%, gold 0deg 75%, deepskyblue 0deg); margin:auto;  }.checkerboard { width: 300px; height: 160px;  background:deepskyblue;   background: conic-gradient(#eee 25%, white 0deg 50%, #eee 0deg 75%, white 0deg) 0 \/ 20px 20px; margin:auto;}<\/style>\n<p>\u5b9e\u65f6\u6548\u679c\u5982\u4e0b\uff0c\u4e0d\u652f\u6301\u7684\u6d4f\u89c8\u5668\u4f1a\u662f\u7eaf\u8272\uff0c\u5982\u679c\u6ca1\u6709\u4efb\u4f55\u6548\u679c\uff0c\u4e00\u5b9a\u662f\u975e\u6cd5\u6293\u53d6\u6216\u590d\u5236\u7684\u6587\u7ae0\uff0c\u8bf7\u8bbf\u95ee\u946b\u7a7a\u95f4\u946b\u751f\u6d3b\u539f\u6587<span class=\"hidden\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=9384<\/span>\uff1a<\/p>\n<div class=\"pie\"><\/div>\n<p>\u5176\u4e2d\uff0c\u4ee3\u7801\u90e8\u5206\u7684<code>'gold 0deg 75%'<\/code>\u8fd9\u91cc\u5c31\u662f\u6e10\u53d8\u8303\u56f4\u8bed\u6cd5\uff08IE\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\uff09\uff0c\u8fd9\u662f\u8fd9\u91cc\u4e00\u4e2a\u4f7f\u7528\u4e86\u89d2\u5ea6\u503c\uff0c\u4e00\u4e2a\u662f\u767e\u5206\u6bd4\u503c\uff0c\u8fd9\u91cc<code>0deg<\/code>\u6362\u6210<code>0%<\/code>\u4e5f\u662f\u4e00\u6837\u7684\u6548\u679c\uff0c\u5e76\u4e0d\u662f\u5fc5\u987b\u4f7f\u7528\u89d2\u5ea6\u503c\u3002<\/p>\n<p>\u7136\u540e\uff0c\u7406\u8bba\u4e0a\uff0c\u8fd9\u91cc\u8bbe\u7f6e\u7684\u6570\u503c\u5e94\u8be5\u662f<code>40%<\/code>\uff0c\u6216\u8005<code>144deg<\/code>\uff0c\u800c\u4e0d\u662f<code>0deg<\/code>\uff0c\u4e0d\u8fc7\u6e10\u53d8\u65ad\u70b9\u6709\u4e2a\u7279\u6027\uff0c\u5982\u679c\u540e\u9762\u7684\u6e10\u53d8\u65ad\u70b9\u4f4d\u7f6e\u503c\u6bd4\u524d\u9762\u7684\u6e10\u53d8\u65ad\u70b9\u4f4d\u7f6e\u503c\u5c0f\u7684\u65f6\u5019\uff0c\u540e\u9762\u7684\u6e10\u53d8\u65ad\u70b9\u7684\u4f4d\u7f6e\u503c\u4f1a\u6309\u7167\u524d\u9762\u8f83\u5927\u7684\u6e10\u53d8\u65ad\u70b9\u4f4d\u7f6e\u503c\u6e32\u67d3\u3002<\/p>\n<p>\u4e8e\u662f\u4e4e\uff0c<code>'gold 0deg 75%'<\/code>\u8fd9\u91cc\u7684<code>'0deg'<\/code>\u5c31\u4f1a\u4f7f\u7528<code>'yellowgreen 40%'<\/code>\u4e2d\u7684<code>'40%'<\/code>\u4f4d\u7f6e\u503c\u8fdb\u884c\u6e32\u67d3\uff0c\u540c\u7406\uff0c<code>'deepskyblue 0deg'<\/code>\u5b9e\u9645\u662f\u6309\u7167<code>'deepskyblue 75%'<\/code>\u6e32\u67d3\u7684\u3002<\/p>\n<p>\u4e5f\u5c31\u662f\u8bf4\uff0c\u5982\u679c\u6211\u4eec\u60f3\u8981\u6e10\u53d8\u989c\u8272\u754c\u9650\u5206\u660e\uff0c\u53ea\u8981\u8bbe\u7f6e\u8d77\u59cb\u6e10\u53d8\u4f4d\u7f6e\u4e3a0%\u5c31\u53ef\u4ee5\u4e86\uff0c\u65e0\u9700\u52a8\u8111\u5b50\u53bb\u8ba1\u7b97\uff0c\u7b97\u662f\u4e00\u4e2aCSS\u5b9e\u7528\u5c0f\u6280\u5de7\u3002<\/p>\n<p>\u6211\u4eec\u8fd8\u53ef\u4ee5\u4f7f\u7528\u9525\u5f62\u6e10\u53d8\u5b9e\u73b0\u7684\u57fa\u4e8e\u8272\u76f8\u548c\u9971\u548c\u5ea6\u7684\u53d6\u8272\u76d8\uff0cCSS\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre>.hs-wheel {\r\n    width: 150px; height: 150px;\r\n    border-radius: 50%;\r\n    background: radial-gradient(closest-side, gray, transparent),\r\n        conic-gradient(red, magenta, blue, aqua, lime, yellow, red);\r\n}<\/pre>\n<p>\u6548\u679c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202004\/\/5-31_conic-color-wheel.png\" loading=\"lazy\" width=\"150\" height=\"150\" class=\"aligncenter alignmiddle\" alt=\"\u9525\u5f62\u6e10\u53d8\u5b9e\u73b0\u7684\u8272\u76d8\u6548\u679c\u622a\u56fe\"><\/p>\n<p>\u9525\u5f62\u6e10\u53d8\u662f\u6240\u6709CSS\u65b9\u6cd5\u4e2d\uff0c\u5b9e\u73b0\u68cb\u76d8\u6548\u679c\uff08PNG\u900f\u660e\u80cc\u666f\u7684\u7070\u767d\u7f51\u683c\u6548\u679c\uff09\u6700\u7b80\u5355\u7684\u65b9\u6cd5\uff0c\u4e00\u884cCSS\u4ee3\u7801\u5c31\u8db3\u591f\u4e86\uff1a<\/p>\n<pre>.checkerboard {\r\n    width: 300px; height: 160px;\r\n    background: conic-gradient(#eee 25%, white 0deg 50%, #eee 0deg 75%, white 0deg) 0 \/ 20px 20px;\r\n}<\/pre>\n<p>\u5b9e\u65f6\u6548\u679c\u5982\u4e0b\uff0c\u4e0d\u652f\u6301\u7684\u6d4f\u89c8\u5668\u4f1a\u662f\u6df1\u5929\u84dd\u8272deepskyblue\uff0c\u5982\u679c\u6ca1\u6709\u4efb\u4f55\u6548\u679c\uff0c\u8bf7\u6233\u8fd9\u91cc<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=9384\">\u8bbf\u95ee\u539f\u6587<\/a>\uff1a<\/p>\n<div class=\"checkerboard\"><\/div>\n<p>\u6700\u540e\u4e00\u4e2a\u4f8b\u5b50\uff0c\u6f14\u793a\u5982\u4f55\u501f\u52a9\u9525\u5f62\u6e10\u53d8\u5b9e\u73b0\u5f88\u5b9e\u7528\u7684loading\u6548\u679c\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre>.loading {\r\n    width: 100px; height: 100px;\r\n    border-radius: 50%;\r\n    background: conic-gradient(deepskyblue, 30%, white);\r\n    --mask: radial-gradient(closest-side, transparent 75%, black 76%);\r\n    -webkit-mask-image: var(--mask);\r\n    mask-image: var(--mask);\r\n    animation: spin 1s linear infinite reverse;\r\n}\r\n@keyframes spin {\r\n    from { transform: rotate(0deg); }\r\n    to { transform: rotate(360deg); }\r\n}<\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202004\/5-33_conic-loading.png\" loading=\"lazy\" class=\"aligncenter alignmiddle\" width=\"101\" height=\"101\" alt=\"\u9525\u5f62\u6e10\u53d8\u5b9e\u73b0\u7684loading\u6548\u679c\"><\/p>\n<p>\u539f\u7406\u5f88\u7b80\u5355\uff0cLoading\u56fe\u50cf\u5176\u5b9e\u5c31\u662f\u4e00\u4e2a\u9525\u5f62\u6e10\u53d8\uff0c\u53ea\u662f\u4f7f\u7528\u4e86CSS\u906e\u7f69\u5c5e\u6027\u53ea\u8ba9\u5916\u570825%\u7684\u8303\u56f4\u663e\u793a\uff0c\u4e8e\u662floading\u7684\u5706\u73af\u6548\u679c\u5c31\u51fa\u73b0\u4e86\u3002<\/p>\n<p>\u5982\u679c\u60f3\u8981\u5c0f\u5c3a\u5bf8\u7684loading\u6548\u679c\uff0c\u76f4\u63a5\u4fee\u6539\u4e0a\u8ff0CSS\u4ee3\u7801\u4e2d\u7684<code>width<\/code>\u5c5e\u6027\u503c\u548c<code>height<\/code>\u5c5e\u6027\u503c\u5373\u53ef\u3002<\/p>\n<p>\u8fd9\u4e2a\u6548\u679c\u5e94\u8be5\u6709\u4e0d\u5c11\u4eba\u4f1a\u559c\u6b22\uff0c\u6240\u4ee5\u6211\u4e13\u95e8\u505a\u4e86\u4e2ademo\uff0c\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/study\/202004\/css-conic-gradient-loading-demo.php\" rel=\"noopener\" target=\"_blank\">CSS conic-gradient\u9525\u5f62\u6e10\u53d8\u5b9e\u73b0loading\u6548\u679c\u5b9edemo<\/a><\/p>\n<h3>\u56db\u3001\u517c\u5bb9\u6027\u53ca\u5176\u4ed6<\/h3>\n<p>\u9525\u5f62\u6e10\u53d8\u662fCSS Images Module Level 4\u89c4\u8303\u4e2d\u65b0\u5b9a\u4e49\u7684\u4e00\u79cd\u6e10\u53d8\uff0c\u6240\u4ee5\u517c\u5bb9\u6027\u8981\u6bd4\u7ebf\u6027\u6e10\u53d8\u548c\u5f84\u5411\u6e10\u53d8\u5dee\u5f88\u591a\uff0c\u76ee\u524dChrome\u548cSafari\u6d4f\u89c8\u5668\u5747\u5df2\u652f\u6301\uff0cFirefox\u5373\u5c06\u6b63\u5f0f\u652f\u6301\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/202004\/2020-04-20_230634.png\" width=\"585\" height=\"386\" alt=\"\u9525\u5f62\u6e10\u53d8\u517c\u5bb9\u6027\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u5bf9\u5185\u7684\u4e2d\u540e\u53f0\u4ea7\u54c1\u53ef\u4ee5\u4f7f\u7528\uff0c\u4f46\u662f\u5bf9\u5916\u7684\u9879\u76ee\u4e2d\u4f7f\u7528\u8fd8\u5b58\u5728\u8f83\u5927\u98ce\u9669\uff0c\u9700\u8981\u4f7f\u7528\u56fe\u7247\u66ff\u4ee3\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u672c\u6587\u7684\u5168\u90e8\u5185\u5bb9\uff0c\u5982\u679c\u4f60\u89c9\u5f97\u5199\u5f97\u8fd8\u4e0d\u9519\uff0c\u6b22\u8fce\u5206\u4eab\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/emtion\/emoji\/1f60a.svg\" width=\"20\" height=\"20\" align=\"absmiddle\"><\/p>\n<p>\u672c\u6587\u4e3a\u539f\u521b\u6587\u7ae0\uff0c\u6b22\u8fce\u5206\u4eab\uff0c\u52ff\u5168\u6587\u8f6c\u8f7d\uff0c\u5982\u679c\u5b9e\u5728\u559c\u6b22\uff0c\u53ef\u6536\u85cf\uff0c\u6c38\u4e0d\u8fc7\u671f\uff0c\u4e14\u4f1a\u53ca\u65f6\u66f4\u65b0\u77e5\u8bc6\u70b9\u53ca\u4fee\u6b63\u9519\u8bef\uff0c\u9605\u8bfb\u4f53\u9a8c\u4e5f\u66f4\u597d\u3002<br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=9384\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=9384<\/a><\/p>\n<p>\uff08\u672c\u7bc7\u5b8c\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202004\/conic-gradient-cover.jpg\" width=\"160\" height=\"108\" class=\"alignright size-medium\" \/><\/p>\n<p>\u9525\u5f62\u6e10\u53d8\u662fCSS Images Module Level 4\u89c4\u8303\u4e2d\u65b0\u5b9a\u4e49\u7684\u4e00\u79cd\u6e10\u53d8\uff0c\u53ef\u4ee5\u975e\u5e38\u65b9\u4fbf\u5b9e\u73b0\u8fc7\u53bb\u5f88\u96be\u5b9e\u73b0\u7684\u6548\u679c\uff0c\u4f8b\u5982\u997c\u56fe\uff0c\u8272\u677f\uff0c\u68cb\u76d8\u7b49\u5404\u79cd\u6548\u679c\uff0cCSS\u5f00\u53d1\u5fc5\u5b66\u5fc5\u4f1a\u6280\u80fd\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[1179,363,1180,1181,868,1609,1608],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/9384"}],"collection":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/comments?post=9384"}],"version-history":[{"count":0,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/9384\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=9384"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=9384"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=9384"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}