单击我的菜单中的关于或联系人后如何滚动到div(例如:#about,#contact)?
<div class="masthead">
<ul class="nav nav-pills pull-right">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
<h3 class="muted">Name site</h3>
</div>
Run Code Online (Sandbox Code Playgroud) 我正在尝试将Bootstrap Lightbox与我自己的twitter bootstrap网站集成.如何使用http://jbutz.github.com/bootstrap-lightbox/#demo中的示例
在我的代码?我需要导入什么?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Template · Bootstrap</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
<link href="css/bootstrap.css" rel="stylesheet">
<style type="text/css">
body {
padding-top: 20px;
padding-bottom: 40px;
}
/* Custom container */
.container-narrow {
margin: 0 auto;
max-width: 700px;
}
.container-narrow > hr {
margin: 30px 0;
}
</style>
<link href="css/bootstrap-responsive.css" rel="stylesheet">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]> …Run Code Online (Sandbox Code Playgroud)