svg的用法

<path>标签的使用:

<svg xmlns="http://www.w3.org/2000/svg"

xmlns:xlink="http://www.w3.org/1999/xlink" width="400" height="300" viewBox="0,0,400,300">

<defs> <path id="a1" d="M0 50 C150 150 100 -50 300 50" stroke="#000" fill="none"/> </defs>

<text dy="30"> <textPath startOffset="10%" xlink:href="#a1">在平坦的路上曲折前行</textPath> </text>

</svg>

原文链接:http://www.cnblogs.com/yunkou/p/4134423.html

posted @ 2016-10-23 20:37  chuntaoj  阅读(170)  评论(0编辑  收藏  举报