{"id":219028,"date":"2020-11-27T16:42:29","date_gmt":"2020-11-27T08:42:29","guid":{"rendered":"http:\/\/4563.org\/?p=219028"},"modified":"2020-11-27T16:42:29","modified_gmt":"2020-11-27T08:42:29","slug":"%e6%8f%90%e5%8f%96-svg-%e4%b8%ad%e5%85%83%e7%b4%a0%e5%a6%82%e4%bd%95%e8%a7%a3%e5%86%b3%e5%bc%95%e7%94%a8%e5%85%b6%e4%bb%96%e5%85%83%e7%b4%a0%e7%9a%84%e9%97%ae%e9%a2%98%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=219028","title":{"rendered":"\u63d0\u53d6 SVG \u4e2d\u5143\u7d20\u5982\u4f55\u89e3\u51b3\u5f15\u7528\u5176\u4ed6\u5143\u7d20\u7684\u95ee\u9898\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u63d0\u53d6 SVG \u4e2d\u5143\u7d20\u5982\u4f55\u89e3\u51b3\u5f15\u7528\u5176\u4ed6\u5143\u7d20\u7684\u95ee\u9898\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : salamanderMH <\/span>  <span><i><\/i> 6<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5c31\u60f3\u63d0\u53d6 SVG \u4e2d\u7b2c\u4e00\u5c42\u7684\u5143\u7d20\uff0c\u50cf\u4e0b\u9762\u7684 SVG\uff1a<\/p>\n<pre><code>&lt;svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" version=\"1.1\"&gt;    &lt;linearGradient id=\"SVGID_1_\" gradientUnits=\"userSpaceOnUse\" x1=\"78\" y1=\"269.543\" x2=\"237\" y2=\"269.543\"&gt;......&lt;\/linearGradient&gt;     &lt;symbol  id=\"test\" viewBox=\"-16.126 -14.41 32.251 28.819\"&gt;...&lt;\/symbol&gt;     &lt;rect x=\"78\" y=\"203.043\" style=\"fill:url(#SVGID_1_);\" width=\"159\" height=\"133\"\/&gt;     &lt;circle cx=\"100\" cy=\"50\" r=\"40\" stroke=\"black\" stroke-width=\"2\" fill=\"red\" \/&gt;     &lt;g&gt;         &lt;use xlink:href=\"#test\" width=\"32.251\" height=\"28.819\" x=\"-16.126\" y=\"-14.41\" transform=\"matrix(1 0 0 -1 402.9284 846.39)\" style=\"overflow:visible;\"&gt;&lt;\/use&gt;     &lt;\/g&gt; &lt;\/svg&gt; <\/code><\/pre>\n<p>\u8981\u63d0\u53d6<code>rect<\/code>\uff0c<code>circle<\/code>\uff0c<code>g<\/code>\u5143\u7d20\uff0c\u4f46\u662f<code>rect<\/code>\u5f15\u7528\u4e86<code>linearGradient<\/code>\uff0c<code>g<\/code>\u5f15\u7528\u4e86<code>symbol<\/code>\uff0c\u8fd9\u4e2a\u95ee\u9898\u548b\u89e3\u51b3\u5462\uff1f<br \/> \u8fd9\u4e2a\u5e93\u53ef\u4ee5\u628a\u5143\u7d20\u8f6c\u5316\u4e3a svg \u6587\u672c\uff0c\u4f46\u662f\u6ca1\u89e3\u51b3\u5f15\u7528\u7684\u95ee\u9898\u3002<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>0<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u63d0\u53d6 SVG \u4e2d\u5143\u7d20\u5982\u4f55\u89e3\u51b3\u5f15\u7528\u5176&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/219028"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=219028"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/219028\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=219028"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=219028"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=219028"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}