HTML - ¿Como convertir el id de un svg path en una variable de php?

 
Vista:
sin imagen de perfil

¿Como convertir el id de un svg path en una variable de php?

Publicado por JL (1 intervención) el 02/12/2020 04:46:48
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
<?php  ?>
 
<!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="utf-8">
    <title></title>
  </head>
  <style>
 
.terrenos {
fill:white;
stroke:#000000;
stroke-linecap:butt;
stroke-linejoin:miter;
stroke-opacity:1;
stroke:black;
stroke-width:3;
}
 
.terrenos:hover{
  fill:yellow;
}
 
 
</style>
 
  <body>
 
<svg width="11.41in" height="6.9499998in" viewBox="0 0 289.814 176.53" version="1.1" id="svg8">
 
   <polyline id="M1L1" class="terrenos" points="142,4 139,46 178,46 178,4 142,4" style="stroke:black;stroke-width:3" />
   <polyline id="M1L2" class="terrenos" points="139,46 137,72 178,72 178,46 139,46" style="stroke:black;stroke-width:3" />
 
</svg>
 
  </body>
</html>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder