soulxheart
Mitglied
Guten Tag
Ich wollte mal ein wenig mit Bootstrap experimentieren.
index.php:
headers.inc.php:
navigation.inc.php:
Kann mir jemand sagen, was ich hier falsch mache? Die Dropdown-Funktion funktioniert einfach nicht, obwohl ich das genau so von der Bootstrap-Seite übernommen habe.
Grüsse
Ich wollte mal ein wenig mit Bootstrap experimentieren.
index.php:
HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<?php
include "../inc/headers.inc.php";
?>
<title>Startseite</title>
</head>
<body>
<div id="wrapper">
<?php
include "../inc/navigation.inc.php";
?>
<div id="content">
<form>
<fieldset>
<legend>Login</legend>
<div class="form-group">
<label for="userid">User ID</label>
<input type="text" class="form-control" id="userid" placeholder="User ID">
</div>
<div class="form-group">
<label for="password">Passwort</label>
<input type="password" class="form-control" id="password" placeholder="Passwort">
</div>
<div class="checkbox">
<label>
<input type="checkbox" id="remind">Merken
</label>
</div>
<button type="submit" class="btn btn-default">Submit</button>
</fieldset>
</form>
</div>
<div id="footer">
<p>Copyright 2013</p>
</div>
</div>
</body>
</html>
headers.inc.php:
HTML:
<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript" src="../js/bootstrap.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="../css/main.css" />
<link rel="stylesheet" type="text/css" href="../css/bootstrap.css" />
<link rel="icon" href="../img/favicon.ico" />
navigation.inc.php:
HTML:
<ul class="nav nav-tabs">
<li class="active"><a href="#">Startseite</a></li>
<li><a href="#">Login</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
Links <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="#">Testlink1</a></li>
<li><a href="#">Testlink2</a></li>
<li><a href="#">Testlink3</a></li>
</ul>
</li>
</ul>
Kann mir jemand sagen, was ich hier falsch mache? Die Dropdown-Funktion funktioniert einfach nicht, obwohl ich das genau so von der Bootstrap-Seite übernommen habe.
Grüsse