Bootstrap5: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „= Links = * https://www.w3schools.com/bootstrap5/bootstrap_get_started.php = Zielsetzung = Bootstrap ist eine Sammlung von CSS-Definitionen, die die Gestaltung von Webseiten stark vereinfacht. Die aktuelle Version ist 5. = Schnellkurs = * eine Beispieldatei bootstrap.html <pre> <!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap 5 Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <l…“) |
|||
Zeile 20: | Zeile 20: | ||
</head> | </head> | ||
<body> | <body> | ||
<nav class="navbar navbar-expand-sm navbar-dark bg-dark"> | |||
<div class="container-fluid"> | |||
<a class="navbar-brand" href="javascript:void(0)">Logo</a> | |||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#mynavbar"> | |||
<span class="navbar-toggler-icon"></span> | |||
</button> | |||
<div class="collapse navbar-collapse" id="mynavbar"> | |||
<ul class="navbar-nav me-auto"> | |||
<li class="nav-item"> | |||
<a class="nav-link" href="javascript:void(0)">Start</a> | |||
</li> | |||
<li class="nav-item"> | |||
<a class="nav-link" href="javascript:void(0)">Impressum</a> | |||
</li> | |||
</ul> | |||
<form class="d-flex"> | |||
<button class="btn btn-secondary" type="button">Settings</button> | |||
<button class="btn btn-primary" type="button">Logout</button> | |||
</form> | |||
</div> | |||
</div> | |||
</nav> | |||
<div class="container-fluid p-5 bg-primary text-white text-center"> | <div class="container-fluid p-5 bg-primary text-white text-center"> | ||
<h1>My First Bootstrap Page</h1> | <h1>My First Bootstrap Page</h1> |
Version vom 19. September 2023, 20:24 Uhr
Links
Zielsetzung
Bootstrap ist eine Sammlung von CSS-Definitionen, die die Gestaltung von Webseiten stark vereinfacht.
Die aktuelle Version ist 5.
Schnellkurs
- eine Beispieldatei bootstrap.html
<!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap 5 Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet"> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js"></script> </head> <body> <nav class="navbar navbar-expand-sm navbar-dark bg-dark"> <div class="container-fluid"> <a class="navbar-brand" href="javascript:void(0)">Logo</a> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#mynavbar"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="mynavbar"> <ul class="navbar-nav me-auto"> <li class="nav-item"> <a class="nav-link" href="javascript:void(0)">Start</a> </li> <li class="nav-item"> <a class="nav-link" href="javascript:void(0)">Impressum</a> </li> </ul> <form class="d-flex"> <button class="btn btn-secondary" type="button">Settings</button> <button class="btn btn-primary" type="button">Logout</button> </form> </div> </div> </nav> <div class="container-fluid p-5 bg-primary text-white text-center"> <h1>My First Bootstrap Page</h1> <p>Resize this responsive page to see the effect!</p> </div> <div class="container mt-5"> <div class="row"> <div class="col-sm-4"> <h3>Column 1</h3> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p> <p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris...</p> </div> <div class="col-sm-4"> <h3>Column 2</h3> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p> <p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris...</p> </div> <div class="col-sm-4"> <h3>Column 3</h3> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p> <p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris...</p> </div> </div> </div> </body> </html>