Bonsoir,
je me forme au framework bootstrap et j'essaie de faire tourner un code qui utilise des icônes glyphicon. Sauf que ces icônes n'apparaissent pas. Pourtant, en lisant https://www.developpez.net/forums/d1...es-chargement/, j'ai cru comprendre qu'il fallait inclure la librairie css fontawesome, mais rien y fait
Code html : 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 <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Typographie</title> <link href="http://www.cabyan.com/bootstrap/css/bootstrap.css" rel="stylesheet"> <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet"> <script src="http://www.cabyan.com/bootstrap/js/jquery.js"></script> <script src="http://www.cabyan.com/bootstrap/js/bootstrap.min.js"></script> <style> body {padding-top:50px;} .container {} </style> </head> <body> <div class="container"> <h1><span class="glyphicon glyphicon-hand-right"></span> Les icônes </h1> <p><span class="glyphicon glyphicon-home"></span> Accueil </p> <span class="label label-primary"><span class="glyphicon glyphicon-comment"></span> 10 Commentaires</span> <button class="btn btn-warning"><span class="glyphicon glyphicon-shopping-cart"></span> Ajouter au panier</button> <p class="text-warning lead"><span class="glyphicon glyphicon-warning-sign"></span> Classe warning</p> </div> </body> </html>
Partager