bootstrap 3에서 scrollspy를 사용할 수 없습니다. 난 이미 stackoverflow의 답변을 포함하여 inumerous 포럼에서 읽은 모든 시도했지만 성공과 함께.Twitter Bootstrap 3 scrollspy가 작동하지 않습니다
누군가이 코드를보고 도움이된다면 도움이 될 것입니다.
여기에 코드입니다 : 사전에
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="../../assets/ico/favicon.png">
<title>Starter Template for Bootstrap</title>
<!-- Bootstrap core CSS -->
<link href="../../dist/css/bootstrap.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="starter-template.css" rel="stylesheet">
<style type="text/css">
body {
text-align: center;
}
#one, #two, #three, #four {
height: 800px;
}
</style>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="../../assets/js/html5shiv.js"></script>
<script src="../../assets/js/respond.min.js"></script>
<![endif]-->
</head>
<body data-spy="scroll" data-target="#side-nav" data-offset="0">
<nav id="side-nav">
<ul class="nav nav-list affix">
<li><a href="#one">one</a></li>
<li><a href="#two">two</a></li>
<li><a href="#three">three</a></li>
<li><a href="#four">four</a></li>
</ul>
</nav>
<section id="one">one section</section>
<section id="two">two section</section>
<section id="three">three section</section>
<section id="four">four section</section>
</body>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="../../assets/js/jquery.js"></script>
<script src="../../dist/js/bootstrap.min.js"></script>
</body>
</html>
감사합니다! 건배!
편집 : 당신이 다음 URL에서 작동하지 않는 확인할 수 있습니다 http://zumuha.site40.net/bootstrap/examples/starter-template/
건배!
무슨 일입니까? 어떻게 보이나요? – PSL
앵커 링크는 클릭 할 때 작동하지만 스크롤 할 때 #면 nav에서 업데이트되지 않습니다. – zumuha
콘솔에 오류가 표시됩니다. 당신은 필요한 스타일과 모든 것을 가지고 있습니까? 이것이 여기에서 작동하는지 확인하십시오 .. http://jsbin.com/azejOqA/1/ 및 http://jsbin.com/azejOqA/1/edit – PSL