<!DOCTYPE html>
<html>
<body>
<p><b>Note:</b> This example only works in Google Chrome.</p>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<rect x="10" y="20" width="90" height="60">
<animateColor id="a1" attributeName="fill" from="red" to="blue" dur="3s" />
</rect>
<rect x="10" y="120" width="90" height="60">
<animateColor id="a2" attributeName="fill" from="blue" to="yellow" begin="a1.end" dur="3s" />
</rect>
<rect x="10" y="220" width="90" height="60">
/**代码未完, 请加载全部代码(NowJava.com).**/
本文系作者在时代Java发表,未经许可,不得转载。如有侵权,请联系nowjava@qq.com删除。