Bonjour.

Je créer un site depuis peu, et je me suis rendu compte que son affichage sur téléphone et très différent :
les paragraphes sont plus important que les titre, certains div sont plus petits qu'ils ne devraient.
Je ne sais pas du tout ça vient

Merci de l'attention !

Illustré sur ordinateur :

Nom : rotations_image.png
Affichages : 116
Taille : 42,0 Ko

Sur téléphone :

Nom : wp_ss_20171005_0002.png
Affichages : 81
Taille : 49,3 Ko

Je pense que le problème vient du CSS, mais voici quand même le HTML :

rotation.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
 
<!DOCTYPE html>
<html lang="fr">
 
	<head>
		<meta charset="utf_8">
		<link rel="stylesheet" href="style/basic.css">
		<link rel="stylesheet" href="style/rotation.css">
		<title>ICN-Les rotations en JS</title>
	</head>
 
	<body>
 
		<header>
			<nav>
 
 
				<a><img id="buttonOpenNavMenu" src="pictures/menu_deroulant.png" alt="Menu"/></a>
 
				<ul id="longNavList">
 
					<li class="primaryNavElement"><a title="Accéder à* toutes les pages du site." href="index.html">Index</a></li>
					<li class="secondNavElement"><a title="Voir tous les projets d'ICN" href="list_icn.html">ICN</a></li>
					<li class="secondNavElement"><a title="Voir tous les projets de SI" href="list_si.html">SI</a></li>
					<li class="secondNavElement"><a title="Voir tous mes projets personnels" href="list_perso.html">Perso</a></li>
					<li class="primaryNavElement"><a title="Les détails à propos de ce site." href="a_propos.html">À propos</a></li>
				</ul>
 
 			</nav>		</header>
 
 
 
		<div id="corps">
 
			<h1 title="Changer ce titre">Apprentissage: <br>les rotations en javascript</h1>
 
			<section><h2>Attention !</h2>
 
				<article ><h3>Cette page est temporaire !</h3>
					<p class="warning">Cette page n'ayant pas grand intérêt pédagogique ou informatif,<br>ne restera pas éternellement sur ce site;<br>elle est seulement ici pour distraire quiconque ose s'y aventurer ! 8-s</p>	
				</article>
 
			</section>
 
			<section><h2>Les différentes rotations.</h2>
 
				<article class="horizontalDisplay"><h3>Rotation en 2D</h3>
 
						<div id="rotation2D"></div>
						<div class="indication">Pour délencher l'animation,<br>il faut passer le curseur sur<br>le bloc vert !</div>
 
				</article>
 
				<article class="horizontalDisplay"><h3>Rotation en 3D</h3>
 
						<div id="rotation3D"></div>
						<div class="indication">Pour délencher l'animation,<br>il faut passer le curseur sur<br>le bloc vert !</div>
 
				</article>
			</section>
 
		</div>
 
		<script src="script/rotation.js"></script>
 
	</body>
 
</html>
Et pour le CSS :

basic.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
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
284
285
286
287
288
289
 
 
body
{
 
	margin: 0px;
	background-color: #006383;
 
}
 
h1
{
 
	font-size: 40px;
 
}
 
a
{
 
	text-decoration: none;
 
}
 
ul
{
 
	list-style-type: none;
 
}
 
#corps
{
 
	display: flex;
	flex-direction: column;
	align-items: center;
 
}
 
header
{
 
	margin-top: 0px;
	background-color: #a2c0d6;
	width: 100%;
	font-family: Arial Black;
	border: solid #8DADB3 3px;
 
}
 
header nav ul
{
 
	display: flex;
	justify-content: space-around;
	font-size: 22px;
 
}
 
header a
{
 
	color: #B73E5D;
 
}
 
header a:hover
{
 
	color: #61A0CE;
 
}
 
header a:active
{
 
	color: #45647F;
 
}
 
h1
{
 
	background-color: #36adcb;
	padding: 30px 100px;
	text-align: center;
	border: lightblue 3px solid;
	border-radius: 10px;
	margin: 100px;
 
}
 
 
section
{
 
	background-color: #36adcb;
	max-width: 1200px;
	padding: 10px 25px;
	border: lightblue 3px solid;
	border-radius: 10px;
	margin: 100px;
	text-align: center;
	font-size: 16px;
 
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
 
}
 
section *
{
 
	padding: 30px 40px;
	border-radius: 10px;
 
	font-family: Verdana;
 
}
 
section h2
{
 
	background-color: #36adcb;
	text-decoration: underline;
 
}
 
section ul
{
 
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-around;
 
}
 
section ul a
{
 
	padding: 0px;
	font-weight: bold;
	color: #1dc956;
 
}
 
section ul a:hover
{
 
	color: #4de680;
	text-decoration: underline;
 
}
 
section ul a:active
{
 
	color : #19b34d;
 
}
 
section article
{
 
	margin: 10px 20px;
	background-color: lightblue;
	border-radius: 10px
 
}
 
article
{
 
	text-align: justify;
 
}
 
article h3
{
 
	text-align: center;
 
}
 
.keyword
{
 
	padding: 0px;
 
 
}
 
.linksListNav
{
 
	padding : 30px 10px;
	background-color: lightblue;
	font-size: 18px;	
 
}
 
.horizontalDisplay
{
 
	display: flex;
 
}
 
.warning
{
 
	background-color: #ced694;
 
}
 
.indication
{
 
	background-color: #ADF4CA;
 
	display: flex;
	justify-content: center;
	align-items: center;
 
}
 
@media screen
{
 
	.keyword
	{
 
		color: blue;
 
	}
 
}
 
@media all and (orientation: landscape)
{
 
	#buttonOpenNavMenu
	{
 
		display: none;
 
	}
 
}
 
@media all and (orientation: portrait)
{
 
	header nav
	{
 
		display: flex;
		align-items: center;
 
	}
 
	header nav ul
	{
 
		justify-content: space-between;
		font-size: 15px;
		width: 160px;
 
	}
 
	#buttonOpenNavMenu
	{
 
		margin: 10px 0px 10px 20px;
 
	}
 
	.secondNavElement
	{
 
		display: none;
 
	}
 
}
rotation.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
 
 
#rotation2D, #rotation3D {
    width: 80px;
    height: 70px;
    color: white;
    position:relative;
    font-weight:bold;
    font-size:15px;
    float:left;
    padding 10px;
    margin-right:50px;
    border-radius:5px;
    border:1px solid #000000;
    background: #1dc948;
    margin:10px;
 
}
Et voici le lien du site : http://louloux9100.freeboxos.fr/rotation.html