1

简单的示例,将颜色文本从蓝色更改为红色:

<svg width="500" height="500">

   <text id="TextElement" x="20" y="200"
   style="font-family:Verdana, sans-serif; font-size:13; stroke:blue" >
   Now you see me!
   <set attributeName="stroke" attributeType="CSS" to="red" begin="3s" fill="freeze"/>
   </text>

</svg>

begin="3s"工作正常但

<svg width="500" height="500">

   <text id="TextElement" x="20" y="200"
   style="font-family:Verdana, sans-serif; font-size:13; stroke:blue" >
   Now you see me!
   <set attributeName="stroke" attributeType="CSS" to="red" begin="accessKey(a)" fill="freeze"/>
   </text>

</svg>

begin="accessKey(a)"它不起作用。

浏览器:谷歌浏览器 35.0.1916.153(官方版本 274914)。

PS 我需要 accessKey()仅在 SVG 中,而不是 JavaScript 或其他...

更新:在 FireFox v17 和 v31 中,accessKey(a) 工作正常

4

0 回答 0