»
059. SVG Fill Style Definition
SVG填充样式、SVG的模式填充用法为:
<defs>
<pattern id="fillPattern" x="10" y="10" width="20" height="20" patternunits="userSpaceOnUse">
<circle cx="10" cy="10" r="10" style="stroke: none; fill: #FF0000"></circle>
</pattern>
</defs>
<rect x="10" y="10" width="100" height="100" style="stroke: #000000; fill: url(#fillPattern);">
</rect>
实现效果:
————www.v-signon.com学习者共勉