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 :
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 <!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> <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>
Je vois pas du tout d'où peux provenir le problème.
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; }
Quelqu'un aurait-il une idée pour régler ce problème??
Merci d'avance!!
Partager