当我将
带有 transform="rotate(-10.867784481465419)"
如何仅更改旋转而不是x、y位置。
transform="rotate(-10.867784481465419)"
应用于我的svg-text
标签时,它在视觉上改变了其x
和y
位置。
使用transform="rotate(0)"的情况下:
<html>
<body>
<svg height="300" width="200">
<text x="0" y="175" transform="rotate(0)" fill="red">I love SVG!</text>
Sorry, your browser does not support inline SVG.
</svg>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<svg height="330" width="200">
<text x="0" y="175" fill="red" transform="rotate(-10.867784481465419)">I love SVG!</text>
Sorry, your browser does not support inline SVG.
</svg>
</body>
</html>