来源:3-3 SVG-使用笔刷

洪炉百炼生

2014-10-06 20:52

<svg xmlns="http://www.w3.org/2000/svg">
    <defs>
        <pattern id="p1" x="0" y="0" width="50" height="50" patternUnits="userSpaceOnUse">
            <circle cx="10" cy="10" r="5" fill="red"></circle>
            <polygon points="30 10 60 50 0 50" fill="green"></polygon>
        </pattern>
    </defs>
    <rect x="100" y="100" width="800" height="600" fill="url(#p1)" stroke="blue"></rect>
</svg>

<!-- 笔刷 -->

写回答 关注

0回答

还没有人回答问题,可以看看其他问题

走进SVG

SVG是HTML5 中矢量图的标记语言,学习后掌握更多的干货

52716 学习 · 223 问题

查看课程

相似问题