1

この楕円形に表示されるすべてのテキストが必要ですが、そうではありません。

コード

<embed width="1000" height="1000" type="image/svg+xml" src="path.svg">
  <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">   
    <defs>
        <path id="textPath" 
              d = "M 50 250
                   a 250 250 0 1 1 575 0"
       />
    </defs>
    <text fill="red">
      <textPath xlink:href="#textPath">Foobarcs. All your favorites in one place.     
      </textPath>
    </text>    
  </svg>
</embed>
4

1 に答える 1

2

あなたのフィドルは少し壊れていますが、修正するとすべて問題ないように見えます。すべてのテキストが表示されます。

http://jsfiddle.net/usVuq/1/

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">   
  <defs>
      <path id="textPath" 
            d = "M 50 250
                 a 250 250 0 1 1 575 0" />
  </defs>

  <use xlink:href="#textPath" stroke="blue" fill="none" />

  <text fill="red">
    <textPath xlink:href="#textPath">Foobarcs. All your favorites in one place.     
    </textPath>
  </text>    

</svg>

それとも、私が理解できない必要なものがありますか?

于 2013-06-10T05:21:58.643 に答える