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

HTML Discussion :

Problème affichage de lien entre IE7 et FireFox


Sujet :

HTML

  1. #1
    Débutant  
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    1 571
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2007
    Messages : 1 571
    Points : 353
    Points
    353
    Par défaut Problème affichage de lien entre IE7 et FireFox
    Bonjour tout le monde,

    Je suis entrain de créer un site en html pour moi même donc en local.

    Dans le site, j'ai le lien 'notre_rencontre' qui fonctionne comme je le souhaite sous Mozilla FireFox mais pas sous IE7.
    En fait sous IE7, la couleur est la mais le lien n'est pas souligné quand je glisse ma souris dessus alors que sous Mozilla FireFox cela fonctionne bien.

    Voici le code de la page html :
    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
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
     
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>Metamorphosis Design Free Css Templates</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <script src="js/prototype.js" type="text/javascript"></script>
    <script type="text/javascript">
    function construct()
    {
            var tableLiens = $$('.back a.liaison');
            for(j=0; j<tableLiens.length; j++)
            {
                    var lien = tableLiens[j].readAttribute('href');
                    lien = lien.substring(lien.lastIndexOf('/')+1);
                    tableLiens[j].removeAttribute('href');
                    if(lien == "index.html")
                    {
                            lien = "main.html";
                    }
                    tableLiens[j].writeAttribute('href_bis', lien);
                    tableLiens[j].observe('click', charger);
            }
    }
     
    function charger(e)
    {
            var el = e.element();
            var url = el.readAttribute('href_bis');
            new Ajax.Request(url, {
             onComplete: function(xhr) {
              $('middle_back').innerHTML = xhr.responseText;
              }
            });
    }
     
    document.observe('dom:loaded', construct);
    </script> 
    <link href="styles.css" rel="stylesheet" type="text/css" media="screen" />
    </head>
    <body>
    <div id="main">
    <div id="inner">
    <!-- start header -->
    <div id="header">
     
    <div id="logo">
    	<h1>metamorph_innerlight</h1>
    	<h2><a href="http://www.metamorphozis.com/" id="metamorph">Design by Metamorphosis Design</a></h2>
      </div>
    </div>
    <!-- end header -->
    <!-- start page -->
    <div id="page">
    	<!-- start leftbar -->
    	<div id="leftbar" class="sidebar">
    			<h2>Categories</h2>
    			 <div class="back">
    				<ul>
    					<li><a href="notre_rencontre.html" class="liaison">notre rencontre</a></li>
    					<li><a href="#">Suspendisse mauris</a></li>
    					<li><a href="#">Urnanet non semper</a></li>
    					<li><a href="#">Proin porttitor</a></li>
    				</ul>
    			</div>
    			<div class="bottom_small"></div>
    	</div>
    	<!-- end leftbar -->
    	<!-- start content -->
    	<div id="content">
    		<div class="post">
    		     <div class="top"></div>
    			 <div id="middle_back">
    			<center>
    			<table>
    				<tr>
    					<td>
    						<p>
    							Toi et moi c'est un amour éternel
    						</p>
    					</td>
    					<td>
    						<img src="image/nous.jpg" />
    					</td>
    					<td>
    						&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
    						<p>
    							Toi et moi c'est pour la vie je l'espère.
    						</p>
    					</td>
    				</tr>
    			</table>
    		</center>
    				  </div>
     
     
    		</div>
    	</div>
    	<!-- end content -->
    	<!-- start rightbar -->
     
    </div>
    <!-- end page --> 
    </div>
     
    </div>
    <div style="text-align: center; font-size: 0.75em;">Design downloaded from <a href="http://www.freewebtemplates.com/">free website templates</a>.</div></body>
    </html>
    Voici la page css :
    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
    * 
    {
    margin: 0px;
    padding: 0px;
    }
     
    body {
    	background: #EEF4F7 url(images/back_all.gif) repeat-x;
    	font-family: Arial, Helvetica, sans-serif;
    	font-size: 13px;
    	color: #000000;
    }
     
    input, textarea {
    	background: #A4E4F5;
    	border: 1px solid #FFFFFF;
    	font: bold 13px Arial, Helvetica, sans-serif;
    	color: #0F5B96;
    }
     
    h1, h2, h3, p, ol, ul {
    	margin-top: 0;
    }
     
    h1, h2, h3 {
    	font-family: Arial, Helvetica, sans-serif;
    }
     
    h1, h2 {
    	text-transform: lowercase;
    	font-weight: normal;
    }
     
    h1 {
    	font-size: 2.4em;
    }
     
    h2 {
    	font-size: 1.8em;
    }
     
     
    a {
    	color: #1D74A6;
    }
     
    a:hover {
    	text-decoration: none;
    	color: #1D74A6;
    }
     
     
     
    hr {
    	display: none;
    }
     
    #main
    {
    width: 1041px;
    margin: 0 auto;
    background: #EEF4F7 url(images/table_back.jpg) no-repeat top;
    }
     
    #inner
    {
    width: 915px;
    margin: 0 auto;
    }
     
    /* Header */
     
    #header {
    	height: 200px;
    	width: 915px;
    }
     
    #logo {
    width: 915px;
    height: 184px;
    }
     
    #logo h1, #logo p {
    	margin: 0;
    	line-height: normal;
    }
     
    #logo h1 {
    	padding: 47px 0 0 20px;
    	font-size: 24px;
    	color: #ffffff;
    }
     
    #logo h2 {
    	padding: 10px 0 0 20px;
    	font-size: 10px;
    	text-transform: uppercase;
    	color: #ffffff;
    }
     
    .back a.liaison { 
    	color:red; 
    	text-decoration:none; 
    	cursor:pointer; 
    }
     
     
    #logo a 
    {
    	text-decoration: none;
    	color: #ffffff;
    }
     
    /* Page */
     
    #page {
    	width: 915px;
    	margin: 0 auto;
    	margin-top: 12px;
    }
     
    /* Content */
     
    #content {
    	float: left;
    	width: 497px;
    	margin-left: 5px;
    }
     
    #content .post ul, #content .post ol
    {
    margin-left: 30px;
    }
     
    #content .top
    {
    width: 497px;
    background: url(images/top.png) no-repeat;
    height: 13px;
    }
     
    #middle_back
    {
    width: 477px;
    background: #ffffff;
    padding: 10px;
    }
     
    #content .bottom
    {
    width: 497px;
    background: url(images/bottom.png) no-repeat;
    height: 9px;
    margin-bottom: 6px;
    }
     
    .post {
    	margin-bottom: 15px;
    	color: #000000;
    	margin-top: 10px;
    }
     
    .post a {
    	color: #0A6894;
    }
     
    .post a:hover {
    	color: #0A6894;
    }
     
    .post H2
    {
    color: #0A6894;
    font-size: 14px;
    font-weight: bold
    }
     
    /* Sidebars */
     
    .sidebar {
    	float: left;
    	width: 202px;
    	margin-top: 10px;
     
    	color: #000000;
     
    }
     
    .sidebar ul {
    	margin: 0;
    	padding: 0;
    	list-style: none;
    	line-height: normal;
    }
     
     
    .sidebar li {
    	padding: 4px 0 4px 20px;
    }
     
    .sidebar a {
    	text-decoration: none;
    	color: #0A6894;
    	font-size: 11px;
    }
     
    .sidebar a:hover {
    	color: #0A6894;
    	text-decoration: underline;
    }
     
    .sidebar h2 {
    	padding-top: 5px;
    	color: #FFFFFF;
    	background: url(images/title.png) no-repeat;
    	height: 23px;
    	padding-left: 20px;
    	font-size: 16px;
    	font-weight: bold;
    }
     
    .bottom_small
    {
    height: 11px;
    background: url(images/bottom_small.png) no-repeat;
    width: 202px;
    margin-bottom: 6px;
    }
     
    /* Right Sidebar */
     
    #rightbar {
    margin-left: 5px;
    }
     
    #leftbar .back, #rightbar .back
    {
    background: #ffffff url(images/title_back.png) no-repeat;
    padding: 10px;
     
    }
    Je vois pas du tout d'où peux provenir le problème.
    Quelqu'un aurait-il une idée pour régler ce problème??

    Merci d'avance!!

  2. #2
    Inactif   Avatar de Deallyra
    Profil pro
    Étudiant
    Inscrit en
    Février 2007
    Messages
    1 997
    Détails du profil
    Informations personnelles :
    Âge : 36
    Localisation : France, Loire Atlantique (Pays de la Loire)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Février 2007
    Messages : 1 997
    Points : 1 769
    Points
    1 769
    Par défaut
    Bonsoir,

    C'est un problème CSS... Mais étrange :o

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
     
    a:hover {
    	text-decoration: none;
    	color: #1D74A6;
    }
    none signifie rien du tout. Donc pas underline.

    Remplaces le donc par underline et tu auras ton souligné... Cependant... Que ça fonctionne contre nature sur Firefox et normalement sous IE...

    En même temps je n'ai pas plus regardé que ça ton code

  3. #3
    Expert éminent
    Avatar de 12monkeys
    Homme Profil pro
    Webmaster
    Inscrit en
    Novembre 2006
    Messages
    4 093
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 47
    Localisation : France, Puy de Dôme (Auvergne)

    Informations professionnelles :
    Activité : Webmaster
    Secteur : Service public

    Informations forums :
    Inscription : Novembre 2006
    Messages : 4 093
    Points : 9 031
    Points
    9 031
    Par défaut
    Bonsoir

    Ca dépend aussi de la configuration du navigateur qui permet de changer ce comportement...

    Sur IE 7 : Outils - Options internet - Avancé - Souligner les liens : jamais, par pointage, toujours

  4. #4
    Débutant  
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    1 571
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2007
    Messages : 1 571
    Points : 353
    Points
    353
    Par défaut réponse à Deallyra et à 12monkeys
    Remplaces le donc par underline et tu auras ton souligné... Cependant... Que ça fonctionne contre nature sur Firefox et normalement sous IE...
    Même avec underline c'est pareil. (BIZARRE)

    Ca dépend aussi de la configuration du navigateur qui permet de changer ce comportement...

    Sur IE 7 : Outils - Options internet - Avancé - Souligner les liens : jamais, par pointage, toujours
    Merci pour ce renseignement, c'est 'toujours' qui est coché.

    En fait ce que je souhaiterais c'est que sous IE7 et sous FireFox, lorsque je lance mon site web les liens ne soit pas souligné mais quand je glisse ma souris sur un lien, il se souligne.
    Les autres liens tel que 'Suspendisse mauris' fonctionne bien que ce soit sous IE et FireFox.

    Cordialement.

Discussions similaires

  1. Le style CSS ne donne pas le même résultat entre IE7 et Firefox
    Par beegees dans le forum Mise en page CSS
    Réponses: 13
    Dernier message: 21/09/2007, 15h32
  2. [XHTML] Problème affichage différent sur Internet Explorer et FireFox
    Par espaladito dans le forum Balisage (X)HTML et validation W3C
    Réponses: 4
    Dernier message: 22/09/2006, 18h05
  3. Problème d'affichage de liste entre IE et FireFox
    Par slideveloppeur2006 dans le forum Général JavaScript
    Réponses: 3
    Dernier message: 11/07/2006, 11h07
  4. [problème peu urgent] lien entre formulaire et table
    Par ghyosmik dans le forum Access
    Réponses: 3
    Dernier message: 20/09/2005, 12h23

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