【发布时间】:2011-10-07 04:56:17
【问题描述】:
我想在 内部 SVG rect 显示一些文本。有可能吗?
我试过了
<svg xmlns="http://www.w3.org/2000/svg">
<g>
<rect x="0" y="0" width="100" height="100" fill="red">
<text x="0" y="10" font-family="Verdana" font-size="55" fill="blue"> Hello </text>
</rect>
</g>
</svg>
但它不起作用。
【问题讨论】:
-
这能回答你的问题吗? Insert text between a rectangle drawn in SVG