Bootstrap-4 -Symbole
Bootstrap-4-Symbole
Bootstrap 4 hat keine eigene Icon-Bibliothek ( Glyphicons von Bootstrap 3 werden in BS4 nicht unterstützt). Es stehen jedoch viele kostenlose Symbolbibliotheken zur Auswahl, z. B. Font Awesome und Google Material Design Icons.
Um Font Awesome-Symbole zu verwenden, fügen Sie Folgendes zu Ihrer HTML-Seite hinzu (kein Download oder Installation erforderlich):
<link rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.7.0/css/all.css"
integrity="sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ"
crossorigin="anonymous">
Fügen Sie dann den Namen der Symbolklasse zu einem beliebigen Inline-HTML-Element hinzu (wie <i>
oder
<span>
):
Beispiel
<i class="fas fa-cloud"></i>
<i class="fas fa-coffee"></i>
<i class="fas fa-car"></i>
<i class="fas fa-file"></i>
<i class="fas fa-bars"></i>
Die Liste aller Font Awesome-Symbole finden Sie hier: https://www.w3schools.com/icons/default.asp