SVG – Learning by Coding
1:
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2:
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
3:
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" [
4:
<!ATTLIST svg xmlns:xlink CDATA #FIXED "http://www.w3.org/1999/xlink">
5:
]>
6: 7:
<!-- SVG - Learning by Coding - http://www.datenverdrahten.de/svglbc/ -->
8:
<!-- Author: Dr. Thomas Meinike 03/03 - thomas@handmadecode.de -->
9: 10:
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
11:
width="640" height="480" viewBox="0 0 400 300">
12: 13:
<title>SVG - Learning by Coding</title>
14:
<desc>SVG-Spezifikation in Beispielen</desc>
15: 16:
<defs>
17: 18:
<style type="text/css">
19:
<![CDATA[
20: 21:
*
22:
{
23:
font-family: sans-serif;
24:
font-size: 12px;
25:
}
26: 27:
]]>
28:
</style>
29: 30:
</defs>
31: 32:
<text x="20" y="30" style="fill: #000; font-size: 24px">
33:
Attribut viewBox (Viewport)</text>
34: 35:
<rect x="20" y="50" width="300" height="200"
36:
style="fill: #EEE; stroke: #000; stroke-width: 2px"/>
37: 38:
<circle cx="170" cy="150" r="50"
39:
style="fill: #FFC; stroke: #00C; stroke-width: 2px"/>
40: 41: 42:
<a xlink:href="../?doc=viewport1" target="_top">
43:
<text x="20" y="280" style="fill: #00C">
44:
<set attributeName="fill" attributeType="CSS" to="#F00" begin="mouseover"/>
45:
<set attributeName="fill" attributeType="CSS" to="#00C" begin="mouseout"/>
46:
viewport1.svg<tspan style="fill: #00C"> |</tspan>
47:
</text>
48:
</a>
49: 50:
<a xlink:href="../?doc=viewport2" target="_top">
51:
<text x="102" y="280" style="fill: #00C">
52:
<set attributeName="fill" attributeType="CSS" to="#F00" begin="mouseover"/>
53:
<set attributeName="fill" attributeType="CSS" to="#00C" begin="mouseout"/>
54:
viewport2.svg<tspan style="fill: #00C"> |</tspan>
55:
</text>
56:
</a>
57: 58:
<a xlink:href="../?doc=viewport3" target="_top">
59:
<text x="184" y="280" style="fill: #00C">
60:
<set attributeName="fill" attributeType="CSS" to="#F00" begin="mouseover"/>
61:
<set attributeName="fill" attributeType="CSS" to="#00C" begin="mouseout"/>
62:
viewport3.svg<tspan style="fill: #00C"> |</tspan>
63:
</text>
64:
</a>
65: 66:
<a xlink:href="../?doc=viewport4" target="_top">
67:
<text x="266" y="280" style="fill: #00C">
68:
<set attributeName="fill" attributeType="CSS" to="#F00" begin="mouseover"/>
69:
<set attributeName="fill" attributeType="CSS" to="#00C" begin="mouseout"/>
70:
viewport4.svg
71:
</text>
72:
</a>
73: 74:
</svg>
[zum Anfang]