Salut tout le monde;
J'ai travaillé une page HTML qui contient un Faux frame ou le contenu doit étre affiché:
avec les css suivants:
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 <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Master Page</title> <link href="style.css" rel="stylesheet" type="text/css" /> <!--[if lte IE 6]> <link href="style_ie.css" rel="stylesheet" type="text/css" /> <![endif]--> </head> <body> <form id="form1" runat="server"> <div id="global"> <div id="header"> <div id="bloc"> <div id="logo">Espace Logo</div> <ul id="menu"> <li>Linkbar</li> <li></li> <li class="dernier">Menubar</li> </ul> </div> <div>Menubar</div> </div> <div id="contenu"> <div> VOICI UN TEST </div> </div> <div id="footer"> bas de page</div> </div> </form> </body> </html>
style.css
et style_ie.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 html, body { height:100%; margin:0; padding:0; overflow:hidden; } body { font-family:arial; color: #808080; font-size: 12px; background:url(../fond.png) #666; background-repeat:repeat-y; } #bloc { border:1px solid #000; width:100%; } #logo { float:left; clear:left; width:30%; } #menu { border-left:1px solid #000; margin:0 0 0 30%; padding:0; } #menu li { border-bottom:1px solid #000; height:20px; list-style-type:none; } #menu .dernier { border-bottom:0; } #global { background:#333; background-repeat: repeat-y; position: relative; height: 100%; max-height:100%; margin:0 auto; width:100%; } #header { background:#444; background-repeat:no-repeat; height:90px; width:100%; color: #FFA800; margin:0; line-height: 2em; text-align:center; } #contenu { text-align:left; left: 0px; padding: 15px; padding-bottom:2em; position:absolute; top:110px; bottom:30px; overflow:auto; right :0; } #footer { background: #444; background-repeat:no-repeat; height:30px; position: absolute; bottom: 0px; left:0; width:100%; text-align: right; padding-right: 20px; line-height:30px; }
J'essaiye de rendre cette page en MASTERPAGE et donc j'y ajoute ASP:CONTENTPLACEHOLDER, voici le code:
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 #global { height:100%; position:absolute; background-color:#555; } #header { position:absolute; left:0; top:0; } #menu { text-align:left; } #contenu { padding-right:0; top:0; padding-top:110px; padding-bottom:30px; height:100%; right:0; background-color:transparent; /* couleur de fond reporté sur #global */ padding-left:0px; padding-right:0px; } #contenu div { height:100%; overflow-y:scroll; background-color:#333333; padding-left:10px; padding-right:10px; } #footer { width:100%; }
mais maitenant le résultat est vraiment une salade, et je sais pas c'est quoi 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 <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %> <!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 id="Head1" runat="server"> <title>Master Page</title> <link href="style.css" rel="stylesheet" type="text/css" /> <!--[if lte IE 6]> <link href="style_ie.css" rel="stylesheet" type="text/css" /> <![endif]--> </head> <body> <form id="form1" runat="server"> <div id="global"> <div id="header"> <div id="bloc"> <div id="gauche">Espace Logo</div> <ul id="menu"> <li>Linkbar</li> <li></li> <li class="dernier">Menubar</li> </ul> </div> <div>Menubar</div> </div> <div id="contenu"> <div> <asp:contentplaceholder id="ContentPlaceHolder1" runat="server"> </asp:contentplaceholder> </div> </div> <div id="footer"> bas de page</div> </div> </form> </body> </html>
Merci d'avance!!!!
Partager