IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Mise en page CSS Discussion :

probleme affichage menu déroulant CSS/java sous IE


Sujet :

CSS

  1. #1
    Nouveau Candidat au Club
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    3
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2007
    Messages : 3
    Points : 1
    Points
    1
    Par défaut probleme affichage menu déroulant CSS/java sous IE
    Bonjour,

    je réalise actuellement un site pour une société d'assurance.
    J'ai réalisé un menu déroulant en CSS avec fontions javascript pour les onmouseover etc...

    Le problème est que le rendu n'est pas du tout le même sous IE et sous FF (firefox). Sous Firefox il n'y a aucun problème, le menu appraît tel que je l'ai créé alors que sous IE l'espacement entre mes sous-menu est bien plus important ce qui implique des décalages dans ma découpe de maquette.

    Pour illustrer ceci voici 2 screenshots :

    Sous FF (affichage OK)


    Sous IE (pb de décalage et espacement entre sous rubriques)


    J'ai cherché un peu sur internet je n'ai pas trouvé d'infos spécifiques à mon problème.

    Voici le code de ma page pour vous éclairer :

    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
    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
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    <html>
    <head>
    <title>anprac</title>
    <script src="backtothehtml.js" type="text/javascript"></script>
    <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    window.onload=montre;
    function montre(id) {
    var d = document.getElementById(id);
    	for (var i = 1; i<=10; i++) {
    		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
    	}
    if (d) {d.style.display='block';}
    }
    //-->
    </script>
    <style type="text/css" media="screen">
    <!-- 
    body {
    	margin: 0;
    	padding: 0;
    	background: white;
    	font-family: tahoma;
    	font-size: 10px;
    	font-weight: bold;
    	color: #003399;
    	background-color: #CCCCCC;
    }
    dl, dt, dd, ul, li {
    margin: 0;
    padding: 0;
    list-style-type: none;
    }
    #menu {
    position: static; /* placement du menu, à modifier selon vos besoins */
    top: 0;
    left: 0;
    }
    #menu {
    width: 175px;
    }
    #menu dt {
    	cursor: pointer;
    	;
    	height: auto;
    	line-height: 20px;
    	text-align: left;
    	font-weight: bold;
    	border: 0px solid gray;
    	background: #FFF;
    	margin-top: 0px;
    	margin-right: 0;
    	margin-bottom: 0px;
    	margin-left: 0;
    }
    #menu dd {
    border: 0px solid gray;
    text-align: left;
    background: #FFF;
    font-weight: regular;
    }
    #menu li {
    	text-align: left;
    	background: #fff;
    	text-indent: 8px;
    	font-size: 9px;
    	font-weight: normal;
    }
    #menu li a, #menu dt a {
    	color: #003399;
    	text-decoration: none;
    	display: block;
    	border: 0 none;
    	height: 100%;
    }
    #menu li a:hover, #menu dt a:hover {
    background: #eee;
    }
    -->
    </style>
    <style type="text/css">
    <!--
    .style1 {color: #003699}
    .style3 {
    	color: #006699;
    	font-size: 10px;
    }
    .style5 {font-size: 9px; }
    .style7 {color: #006699; font-size: 10px; }
    -->
    </style>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <!-- ImageReady Slices (anprac.psd) -->
    <table id="Table_01" width="801" height="636" border="0" cellpadding="0" cellspacing="0" align="center">
    	<tr>
    		<td colspan="14">
    			<img src="images/anprac_01.png" width="800" height="1" alt=""></td>
    		<td>
    			<img src="images/spacer.gif" width="1" height="1" alt=""></td>
    	</tr>
    	<tr>
    		<td width="31" height="634" rowspan="11" bgcolor="#CCCCCC">
    			<img src="images/spacer.gif" width="31" height="634" alt=""></td>
    		<td colspan="6"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="213" height="36">
              <param name="movie" value="swf/anprac.swf">
              <param name="quality" value="high">
              <embed src="swf/anprac.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="213" height="36"></embed>
    		  </object>
    	  <td colspan="2"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="127" height="36">
            <param name="movie" value="swf/Snotre offre.swf">
            <param name="quality" value="high">
            <embed src="swf/Snotre offre.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="127" height="36"></embed>
          </object></td>
    		<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="159" height="36">
              <param name="movie" value="swf/cmtsouscrire.swf">
              <param name="quality" value="high">
              <embed src="swf/cmtsouscrire.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="159" height="36"></embed>
    	    </object></td>
    		<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="136" height="36">
              <param name="movie" value="swf/espaceadherents.swf">
              <param name="quality" value="high">
              <embed src="swf/espaceadherents.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="136" height="36"></embed>
    	    </object></td>
    		<td colspan="2"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="88" height="36">
              <param name="movie" value="swf/contact.swf">
              <param name="quality" value="high">
              <embed src="swf/contact.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="88" height="36"></embed>
    	    </object></td>
    		<td width="46" height="634" rowspan="11" bgcolor="#CCCCCC">
    			<img src="images/spacer.gif" width="46" height="634" alt=""></td>
    		<td>
    			<img src="images/spacer.gif" width="1" height="36" alt=""></td>
    	</tr>
    	<tr>
    		<td colspan="12">
    			<img src="images/anprac_09.png" width="723" height="13" alt=""></td>
    		<td>
    			<img src="images/spacer.gif" width="1" height="13" alt=""></td>
    	</tr>
    	<tr>
    		<td colspan="3">
    			<img src="images/anprac_10.png" width="184" height="133" alt=""></td>
    		<td colspan="9">
    			<img src="images/anprac_11.png" width="539" height="133" alt=""></td>
    		<td>
    			<img src="images/spacer.gif" width="1" height="133" alt=""></td>
    	</tr>
    	<tr>
    		<td colspan="4">
    			<img src="images/anprac_12.png" width="202" height="19" alt=""></td>
    		<td colspan="3" rowspan="3"><img src="images/Tnotreoffre.jpg" width="27" height="203"></td>
    <td colspan="5" rowspan="2">
    			<img src="images/anprac_14.png" width="494" height="48" alt=""></td>
    		<td>
    			<img src="images/spacer.gif" width="1" height="19" alt=""></td>
    	</tr>
    	<tr>
    		<td colspan="2" rowspan="2">
    			<img src="images/anprac_15.png" width="27" height="184" alt=""></td>
    		<th colspan="2" rowspan="2" align="left" valign="top" bgcolor="#FFFFFF" class="style1">
            <dl id="menu">
     
            <dt class="style7" onMouseOver="javascript:montre('smenu1');">Personnel navigant technique</dt>
     
    		  <dd class="style5" id="smenu1">
    				<ul>
    					<li><a href="html/pertedelicence.html" target="contenu">Perte de licence</a></li>
    				  <li><a href="html/inaptitudetemporairedevol.html" target="contenu">Inaptitude temporaire de vol</a></li>
    				  <li><a href="html/arretdetravail.html" target="contenu">Arr&ecirc;t de travail</a></li>
                      <li><a href="html/deces.html" target="contenu">D&eacute;c&egrave;s</a></li>
                      <li><a href="html/fraismedicaux.html" target="contenu">Frais m&eacute;dicaux</a></li>
                      <li><a href="html/protectionjuridique.html" target="contenu">Protection juridique</a></li>
                      <li><a href="html/epargneretraite.html" target="contenu">Epargne - retraite</a></li>
    			</ul>
    		  </dd>	
     
    		<dt class="style7" onMouseOver="javascript:montre('smenu2');">Personnel navigant commercial</dt>
     
    		  <dd class="style5" id="smenu2">
    				<ul>
    					<li><a href="html/pertedelicence.html" target="contenu">Perte de licence</a></li>
    				  <li><a href="html/inaptitudetemporairedevol.html" target="contenu">Inaptitude temporaire de vol</a></li>
    				  <li><a href="html/arretdetravail.html" target="contenu">Arr&ecirc;t de travail</a></li>
                      <li><a href="html/deces.html" target="contenu">D&eacute;c&egrave;s</a></li>
                      <li><a href="html/fraismedicaux.html" target="contenu">Frais m&eacute;dicaux</a></li>
                      <li><a href="html/protectionjuridique.html" target="contenu">Protection juridique</a></li>
                      <li><a href="html/epargneretraite.html" target="contenu">Epargne - retraite</a></li>
    			</ul>
    		  </dd>	
     
              	<dt class="style3" onMouseOver="javascript:montre('smenu3');">Personnel navigant stagiaire</dt>
     
    		  <dd class="style5" id="smenu3">
    				<ul>
    					<li><a href="html/stagiaire.html" target="contenu">Stagiaire</a></li>
    			</ul>
    		  </dd>	
     
    </dl>
    </th>
     
           </td>
      <td>
    			<img src="images/spacer.gif" width="1" height="29" alt=""></td>
    	</tr>
    	<tr>
    		<td colspan="4" rowspan="3"><iframe id="contenu" name="contenu" src="html/blank.html" frameborder="0" align="left" height="350" width="472"></iframe></td>
      <td rowspan="6">
    			<img src="images/anprac_18.png" width="22" height="404" alt=""></td>
    		<td>
    			<img src="images/spacer.gif" width="1" height="155" alt=""></td>
    	</tr>
    	<tr>
    		<td rowspan="5">
    			<img src="images/anprac_19.png" width="19" height="249" alt=""></td>
    		<td colspan="4">
    			<img src="images/anprac_20.png" width="193" height="108" alt=""></td>
    		<td colspan="2" rowspan="5">
    			<img src="images/anprac_21.png" width="17" height="249" alt=""></td>
    		<td>
    			<img src="images/spacer.gif" width="1" height="108" alt=""></td>
    	</tr>
    	<tr>
    		<td colspan="4" rowspan="4">
    			<img src="images/anprac_22.png" width="193" height="141" alt=""></td>
    		<td>
    			<img src="images/spacer.gif" width="1" height="87" alt=""></td>
    	</tr>
    	<tr>
    		<td colspan="4">
    			<img src="images/anprac_23.png" width="472" height="16" alt=""></td>
    		<td>
    			<img src="images/spacer.gif" width="1" height="16" alt=""></td>
    	</tr>
    	<tr>
    		<td colspan="4">
    			<img src="images/anprac_24.png" width="472" height="21" alt=""></td>
    		<td>
    			<img src="images/spacer.gif" width="1" height="21" alt=""></td>
    	</tr>
    	<tr>
    		<td width="472" height="17" colspan="4" bgcolor="#CCCCCC">
    			<img src="images/spacer.gif" width="472" height="17" alt=""></td>
    		<td>
    			<img src="images/spacer.gif" width="1" height="17" alt=""></td>
    	</tr>
    	<tr>
    		<td>
    			<img src="images/spacer.gif" width="31" height="1" alt=""></td>
    		<td>
    			<img src="images/spacer.gif" width="19" height="1" alt=""></td>
    		<td>
    			<img src="images/spacer.gif" width="8" height="1" alt=""></td>
    		<td>
    			<img src="images/spacer.gif" width="157" height="1" alt=""></td>
    		<td>
    			<img src="images/spacer.gif" width="18" height="1" alt=""></td>
    		<td>
    			<img src="images/spacer.gif" width="10" height="1" alt=""></td>
    		<td>
    			<img src="images/spacer.gif" width="1" height="1" alt=""></td>
    		<td>
    			<img src="images/spacer.gif" width="16" height="1" alt=""></td>
    		<td>
    			<img src="images/spacer.gif" width="111" height="1" alt=""></td>
    		<td>
    			<img src="images/spacer.gif" width="159" height="1" alt=""></td>
    		<td>
    			<img src="images/spacer.gif" width="136" height="1" alt=""></td>
    		<td>
    			<img src="images/spacer.gif" width="66" height="1" alt=""></td>
    		<td>
    			<img src="images/spacer.gif" width="22" height="1" alt=""></td>
    		<td>
    			<img src="images/spacer.gif" width="46" height="1" alt=""></td>
    		<td></td>
    	</tr>
    </table>
    <!-- End ImageReady Slices -->
    </body>
    </html>
    *

    Un aperçu en ligne est disponible à l'adresse suivante si vous souhaitez tester sur votre poste : http://exis10z.free.fr/socape/notreoffre.html

    Je vous remercie d'avance pour votre aide.
    Quentin

  2. #2
    Modérateur
    Avatar de Bisûnûrs
    Profil pro
    Développeur Web
    Inscrit en
    Janvier 2004
    Messages
    9 868
    Détails du profil
    Informations personnelles :
    Âge : 41
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Janvier 2004
    Messages : 9 868
    Points : 16 258
    Points
    16 258
    Par défaut
    Essaie de mettre :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    *{
       margin:0;
       padding:0;
    }
    au début de ton CSS.

  3. #3
    Nouveau Candidat au Club
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    3
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2007
    Messages : 3
    Points : 1
    Points
    1
    Par défaut
    merci mais cela n'entraine pas de changement.

    voici l'extrait du code pour vérif que je l'ai bien insérer...

    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
    <style type="text/css" media="screen">
    <!-- 
    {
       margin:0;
       padding:0;
    }
    body {
    	margin: 0;
    	padding: 0;
    	background: white;
    	font-family: tahoma;
    	font-size: 10px;
    	font-weight: bold;
    	color: #003399;
    	background-color: #CCCCCC;
    }
    dl, dt, dd, ul, li {
    margin: 0;
    padding: 0;
    list-style-type: none;
    }
    ....

  4. #4
    Modérateur
    Avatar de Bisûnûrs
    Profil pro
    Développeur Web
    Inscrit en
    Janvier 2004
    Messages
    9 868
    Détails du profil
    Informations personnelles :
    Âge : 41
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Janvier 2004
    Messages : 9 868
    Points : 16 258
    Points
    16 258
    Par défaut
    Tu as oublié l'étoile.

  5. #5
    Nouveau Candidat au Club
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    3
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2007
    Messages : 3
    Points : 1
    Points
    1
    Par défaut
    en effet. oups.

    Je viens de tester avec l'étoile et le résultat est le même .

  6. #6
    Membre expérimenté
    Avatar de kaiser59
    Homme Profil pro
    Inscrit en
    Novembre 2005
    Messages
    1 264
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 44
    Localisation : France

    Informations forums :
    Inscription : Novembre 2005
    Messages : 1 264
    Points : 1 350
    Points
    1 350
    Par défaut
    Salut,

    Essaye ceci :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    * html dl, dt, dd, ul, li {margin: 0;padding: 0; list-style-type: none;}
    j'ai pas changé les valeurs mais joue avec car ce hack bougera uniquement ton sous menu dans IE et non dans FF et si jamais tu remarque que dans IE 7 (dans un autre ordi ou un update) le sous menu serait aussi mal placé tu as juste à rajouter + à html (+html)

    ++

Discussions similaires

  1. Sous menu déroulant css caché par balise img IE
    Par amanteau dans le forum Mise en page CSS
    Réponses: 2
    Dernier message: 16/09/2010, 09h31
  2. Affichage menu déroulant sous Internet Explorer
    Par justmefr dans le forum Mise en page CSS
    Réponses: 9
    Dernier message: 11/07/2009, 13h02
  3. Aide sur un menu déroulant CSS
    Par p0Kep0K dans le forum Mise en page CSS
    Réponses: 2
    Dernier message: 09/09/2006, 14h51
  4. Probleme affichage menu (.js)
    Par freud dans le forum Général JavaScript
    Réponses: 3
    Dernier message: 01/10/2005, 16h27

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo