我正在一个SVG中沿着圆形路径添加文本。
我已经做到了,但我需要“翻转”上面的文本。
“Sit amet”和“Dolor”需要像“Lorem”和“Ipsum”一样直接显示。 如何实现?
<?xml version="1.0" encoding="iso-8859-1"?>
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<path style="fill:#EFEFEF;" d="M0,256a256,256 0 1,0 512,0a256,256 0 1,0 -512,0"/>
<path id="textcircle" style="fill:#FAFAFA;" d="M56,256a200,200 0 1,0 400,0a200,200 0 1,0 -400,0"/>
<text style="font-family: sans-serif; font-weight: 900; font-size:1.2em; fill:#FFAD01;" dy="35" dx="90" >
<textPath xlink:href="#textcircle">
Lorem
</textPath>
</text>
<text style="font-family: sans-serif; font-weight: 900; font-size:1.2em; fill:#FF7101;" dy="35" dx="420" >
<textPath xlink:href="#textcircle">
Ipsum
</textPath>
</text>
<text style="font-family: sans-serif; font-weight: 900; font-size:1.2em; fill:#B6957A;" dy="35" dx="760" >
<textPath xlink:href="#textcircle">
Dolor
</textPath>
</text>
<text style="font-family: sans-serif; font-weight: 900; font-size:1.2em; fill:#00B831;" dy="35" dx="1020" >
<textPath xlink:href="#textcircle">
Sit amet
</textPath>
</text>
</svg>