मैं स्क्रॉल जासूस को लंबवत नौसेना के साथ ठीक से काम करने के लिए नहीं मिल सकता। नीचे मैं आपके द्वारा उपयोग किए जाने वाले कोड को पा सकता हूं। किसी कारण से, केवल "दो" सक्रिय हो जाता है।बूटस्ट्रैप स्क्रॉल जासूस का उपयोग कैसे करें?
किसी को भी क्या गलत है के बारे में एक विचार है?
<html lang="en">
<head>
<meta charset="utf-8">
<title>Twitter Bootstrap Scroll Spy Playground</title>
<link href="bootstrap/css/bootstrap.css" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="row">
<div class="span3">
<ul class="navbar nav nav-list affix">
<li class="active"><a href="#one">One</a></li>
<li><a href="#two">Two</a></li>
</ul>
</div>
<div class="span1" data-spy="scroll">
<section id="one">
<h1>One</h1>
<h2>Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. </h2>
</section>
<section id="two">
<h1>Two</h1>
<h2>Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.</h2>
</section>
</div>
</div>
</div>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="bootstrap/js/bootstrap.js"></script>
</body>
</html>
उत्तर के लिए धन्यवाद का उपयोग करें। हालांकि, मैं अभी भी नहीं पता है कि मूल कोड के साथ गलत है। – user1780429
दरअसल, मैंने आपके उदाहरण को एक स्टैंडअलोन फ़ाइल में निकालने का प्रयास किया, और यह मेरे लिए काम नहीं करता है। यहां देखें: https://dl.dropbox.com/u/18323746/Tmp/html-playground/try-stakoverflow-answer-original.html – user1780429
बेवकूफ काम नहीं करता है? मैंने कई ब्राउज़रों की कोशिश की ... –