-
Notifications
You must be signed in to change notification settings - Fork 0
/
SVG_details.txt
41 lines (19 loc) · 847 Bytes
/
SVG_details.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Detalhes de da linguaguem SVG para manipulação de gráficos vetoriais
- SVG (Scalable Vector Grafics);
- Head:
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink = "http://www.w3.org/1999/xlink"
width="100%" height="100%">
<svg/>
- Este cabeçalho deve ser colocado na primeira linha e coluna do documento.
- A tag svg é o elemento raiz.
- svg deve definir as seguintes variáveis:
xmlns (xml NameSpace);
http://www.w3.org/2000/svg.
xmlns:xlink (para poder anexar componentes externos como scripts);
http://www.w3.org/1999/xlink.
width/height;
definem a área na tela da sua svg.
- SVG é um modelo xml, logo deve ter tags de inicio e fechamento corretamente aninhadas.
- Para vincular um código CSS ao SVG,obedecendo as definição do XML :
<?xsl-stylesheet type="text/css" hred="estilo.css" ?>