Bonjour,

J'ai fait le code suivant pour une page web mobile. Je n'arrive pas a l'afficher correctement sur un mobile. Il m'ouvre une grande fenetre normal et pas minimiser pour la visualisation web. Pouvez vous me dire ce qui ne vas pas dans mon code?

Merci .

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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
 <html> <head> 
<title>Authentification</title>
<style type="text/css">
.h{font-size:x-small;text-align:center}
 .e{margin:2px;padding:2px;text-align:center;font-size:x-small}
 .e div{margin:4px auto}
 .a{margin:4px auto;font-size:x-small}
 .b{text-align:center}
 .f{vertical-align:middle;border:0}
 .g{text-align:center}
 .i{font-size:small;width:100%}
 .c{width:80%;text-align:left}
 .d{text-align:right;width:20%}
 .j{color:#ffffff;border:2px;display:none} 
</style>
</head> 
<body class="b"> 
<div> <div> 
 
</div><hr class="j"/> 
<div><img class="f" src="http://localhost/dir_est/img/logo_dir_est.png" width="150" height="80" alt="Sygetrack"/>
 
</div>
<div> 
<form action="login.php" method="post">
<table width="150" align="center" border="1" cellpadding="5" cellspacing="0" bgcolor="silver">
<tr><td><table align="center">
<tr><td align="center">Utilisateur : </td></tr>
<tr><td><input type="text" name="user" size="10" value=""/></td></tr>
<tr><td align="center">Mot de passe : </td></tr>
<tr><td><input type="password" name="pass" size="10" value=""/></td></tr>
<tr><td colspan="2" align="center"><input type="submit" value="Envoyer"/></td></tr>
</table>
</td></tr></table>
</form> 
 
<font face="arial" size="2" color="red">
<center>Utilisateur ou mot de passe incorrect !</center>
</font>
 
<font face="arial" size="2" color="red">
<center>La base de données n'est pas accessible ! </center>
</font>
 
 
</div> 
<div class="e"> 
<div class="a">Afficher la version Sygetrack&nbsp;: <br/>Mobile&nbsp;|&nbsp;
<a href="http://localhost/dir_est/" >Classique</a> </div> </div> 
</div> 
</body> 
</html>