首页 > 代码库 > 入门例子

入门例子

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Bootstrap</title>
<link rel="stylesheet" href="http://www.mamicode.com/bootstrap.min.css">
<style>
body{
padding-top:50px;
}
.starter{
padding:40px 15px ;
text-align: center;
}
</style>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<a href="http://www.mamicode.com/#" class="navbar-brand">Project Name</a>
</div>
<div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="http://www.mamicode.com/#">home</a> </li>
<li><a href="http://www.mamicode.com/#">About</a> </li>
<li><a href="http://www.mamicode.com/#">Contact</a> </li>
</ul>
</div>
</div>
</div>
</nav>
<div class="container">
<div class="starter">
<h1> Bootstrap starter template </h1>
<p class="lead">欢迎访问</p>
</div>
</div>
</body>
</html>

入门例子