【发布时间】:2011-07-23 22:08:13
【问题描述】:
我有一个 SVG 代码:
<svg width="100%" height="100%" version="1.1"xmlns="http://www.w3.org/2000/svg">
<rect x="20" y="20" width="250" height="250" style="fill:blue">
<animate attributeType="CSS" attributeName="opacity" from="1" to="0" dur="5s" repeatCount="indefinite" />
</rect>
</svg>
现在我需要在rectangle 之间添加一个文本。谁能告诉我怎么做?
【问题讨论】:
-
我认为您的
version和xmlns属性之间缺少空格是您的帖子中的拼写错误?