Bonjour,
j'ai un tableau html avec un rowspan qui s'affiche bien sous Google mais mal sous Firefox et Chrome ; c'est comme si le rowspan n'est pas pris en compte.
Peut-être important : quand je fais "rafraichir", ça s'affiche bien, mais dès que j'active une fonction javascript qui se déclenche sur l'événement "onmouseover", le "rowspan" est perdu.
Voici mon code :Quelle serait une solution ?
Code html+javascript : Sélectionner tout - Visualiser dans une fenêtre à part
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <script type="text/javascript"> //----------------------- function see_bubble(img_){ var Obj = document.getElementById('infobulle'); Obj.innerHTML = "<img src='" +img_ +"' alt='" +img_ +"'>"; Obj.style.display = "block"; } //-------------------- function kill_bubble(){ var Obj = document.getElementById('infobulle'); Obj.innerHTML = '<img src="http://zupimages.net/up/2/1656267263.png"/>'; Obj.style.display = "block"; } </script> <meta http-equiv="content-type" content="text/html; charset=utf-8"> </head> <body> <table width="100%"> <tbody> <tr> <td align="center"> <h4 align="center"> <b><u>Liste des pièces détachées</u></b></h4> <table style="border-collapse: collapse;" align="center" bgcolor="#ffffff" border="1" bordercolor="#993366" cellpadding="3" cellspacing="0"> <tbody> <tr> <td align="left" bgcolor="#660033"><font color="#ffffff"><b>Désignation<br> </b></font></td> <td align="left" bgcolor="#660033"> etc. </tr> <tr> <td align="left"><font color="#000000">Douchette de toilette</font></td> <td align="left"><font color="#000000"> <a href="http://www.groupe-reval-sav.com/Photopiece/test.jpg" onmouseover="see_bubble('http://www.groupe-reval-sav.com/Photopiece/test.jpg');" onmouseout="kill_bubble();">42OF</a> </font></td> <td align="left"><font color="#000000">1</font></td> <td id="infobulle" rowspan="13" align="left"><font color="#000000"><img src="http://zupimages.net/up/2/1656267263.png"></font></td> </tr> etc... </tbody> </table> </td> </tr> </tbody> </table> </body> </html>
Partager