{"id":28193,"date":"2024-11-24T13:59:53","date_gmt":"2024-11-24T05:59:53","guid":{"rendered":"https:\/\/fwq.ai\/blog\/28193\/"},"modified":"2024-11-24T13:59:53","modified_gmt":"2024-11-24T05:59:53","slug":"svg-%e7%8e%af%e5%bd%a2%e8%bf%9b%e5%ba%a6%e6%9d%a1%e7%9a%84%e6%b8%90%e5%8f%98%e5%9b%b0%e5%a2%83%ef%bc%9a%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0%e7%8e%af%e5%bd%a2%e6%b8%90%e5%8f%98%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/28193\/","title":{"rendered":"SVG \u73af\u5f62\u8fdb\u5ea6\u6761\u7684\u6e10\u53d8\u56f0\u5883\uff1a\u5982\u4f55\u5b9e\u73b0\u73af\u5f62\u6e10\u53d8\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173145619911937.jpg\" class=\"aligncenter\" title=\"SVG \u73af\u5f62\u8fdb\u5ea6\u6761\u7684\u6e10\u53d8\u56f0\u5883\uff1a\u5982\u4f55\u5b9e\u73b0\u73af\u5f62\u6e10\u53d8\uff1f\u63d2\u56fe\" alt=\"SVG \u73af\u5f62\u8fdb\u5ea6\u6761\u7684\u6e10\u53d8\u56f0\u5883\uff1a\u5982\u4f55\u5b9e\u73b0\u73af\u5f62\u6e10\u53d8\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>svg\u5b9e\u73b0\u73af\u5f62\u6e10\u53d8\u7684\u56f0\u5883<\/strong><\/p>\n<p>\u4f7f\u7528svg\u5b9e\u73b0\u73af\u5f62\u8fdb\u5ea6\u6761\u65f6\uff0c\u4f1a\u53d1\u73b0\u8fdb\u5ea6\u8d85\u8fc7\u4e00\u5b9a\u89d2\u5ea6\u540e\uff0c\u6e10\u53d8\u6548\u679c\u5448\u73b0\u6c34\u5e73\u5206\u5e03\uff0c\u65e0\u6cd5\u5b8c\u5168\u5f62\u6210\u73af\u5f62\u3002<\/p>\n<p>\u5173\u952e\u5728\u4e8e\uff0csvg\u4ec5\u652f\u6301\u7ebf\u6027\u6e10\u53d8\u548c\u5f84\u5411\u6e10\u53d8\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b9e\u73b0\u73af\u5f62\u6e10\u53d8\u3002<\/p>\n<p><strong>\u89e3\u51b3\u65b9\u6cd5<\/strong><\/p>\n<p>\u65e0\u6cd5\u901a\u8fc7svg\u672c\u8eab\u5b9e\u73b0\u771f\u6b63\u7684\u73af\u5f62\u6e10\u53d8\uff0c\u4f46\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u6cd5\u53d8\u901a\uff1a<\/p>\n<p>\u4f7f\u7528clipPath\u548cforeignObject\u914d\u5408CSS\uff0c\u5b9e\u73b0\u73af\u5f62\u6e10\u53d8\u3002<\/p>\n<p>\u6709\u5173\u5982\u4f55\u4f7f\u7528\u6b64\u65b9\u6cd5\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605\u4ee5\u4e0b\u94fe\u63a5\uff1a<\/p>\n<p>[My Struggle to Use and Animate a Conic Gradient in SVG](\u63d0\u4f9b\u7684\u94fe\u63a5)<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fSVG \u73af\u5f62\u8fdb\u5ea6\u6761\u7684\u6e10\u53d8\u56f0\u5883\uff1a\u5982\u4f55\u5b9e\u73b0\u73af\u5f62\u6e10\u53d8\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>svg\u5b9e\u73b0\u73af\u5f62\u6e10\u53d8\u7684\u56f0\u5883 \u4f7f\u7528svg\u5b9e\u73b0\u73af\u5f62\u8fdb\u5ea6\u6761\u65f6\uff0c\u4f1a\u53d1\u73b0\u8fdb\u5ea6\u8d85\u8fc7\u4e00\u5b9a\u89d2\u5ea6\u540e\uff0c\u6e10\u53d8\u6548\u679c\u5448\u73b0\u6c34\u5e73\u5206\u5e03\uff0c\u65e0\u6cd5\u5b8c\u5168\u5f62\u6210\u73af\u5f62\u3002 \u5173\u952e\u5728\u4e8e\uff0csvg\u4ec5\u652f\u6301\u7ebf\u6027\u6e10\u53d8\u548c\u5f84\u5411\u6e10\u53d8\uff0c\u65e0\u6cd5\u76f4\u63a5\u5b9e\u73b0\u73af\u5f62\u6e10\u53d8\u3002 \u89e3\u51b3\u65b9\u6cd5 \u65e0\u6cd5\u901a\u8fc7svg\u672c\u8eab\u5b9e\u73b0\u771f\u6b63\u7684\u73af\u5f62\u6e10\u53d8\uff0c\u4f46\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u6cd5\u53d8\u901a\uff1a \u4f7f\u7528clipPath\u548cforeignObject\u914d\u5408CSS\uff0c\u5b9e\u73b0\u73af\u5f62\u6e10\u53d8\u3002 \u6709\u5173\u5982\u4f55\u4f7f\u7528\u6b64\u65b9\u6cd5\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605\u4ee5\u4e0b\u94fe\u63a5\uff1a [My Struggle to Use and Animate a Conic Gradient in SVG](\u63d0\u4f9b\u7684\u94fe\u63a5) \u4ee5\u4e0a\u5c31\u662fSVG \u73af\u5f62\u8fdb\u5ea6\u6761\u7684\u6e10\u53d8\u56f0\u5883\uff1a\u5982\u4f55\u5b9e\u73b0\u73af\u5f62\u6e10\u53d8\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-28193","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/28193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=28193"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/28193\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=28193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=28193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=28193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}