Bonjour, j'ai une table et je cherche son offset left.
Dans mon CSS la table est comme ceci :
Le problème est que
Code : 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 #calendar { position:absolute; top:0px; left:40px; empty-cells:show; } #calendar th { border-style:solid; border-width:1px; border-color:black; background-color: pink; } #calendar .jour { width:120px; overflow:hidden; } #calendar td { border-style:dashed; border-width:1px; border-color:black; } #calendar .heure { width:40px; font-size:12px; }
alert (document.getElementById("calendar").offsetLeft);
me retourne 43 sous IE et 40 sous FF...
Comment cela se fait-il? Comment le corriger?
Partager