You are on page 1of 2

Rubyist

2,420 1 19 47
Matteo
196 1 5 21
I couldn't get scrollspy to work in IE 9. I reduced the code to the very basic but the issue remains.
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="lib/jquery-2.0.3.min.js"></script>
<script type="text/javascript" src="lib/bootstrap/js/bootstrap.js"></script>
<link rel="stylesheet" href="lib/bootstrap/css/bootstrap.css" />
<style type="text/css">
#sidenav {
position: fixed;
background-color: #fff;
}
li {
width: 100px;
height: 30px;
background-color: orange;
}
li.active {
background-color: yellow;
}
a.active {
color: red;
}
.box {
width: 500px;
height: 500px;
background-color: red;
margin-top: 10px;
}
body {
height: 100%;
}
</style>
</head>
JsFiddle Link
What am I doing wrong?
javascript css internet-explorer twitter-bootstrap
edited May 6 at 15:14 asked May 3 at 7:06
Can you explain in a bit more detail the difference in behaviour you see between IE9 and another browser
where you see the desired behaviour? Aaron May 3 at 8:31
I've setup a JsFiddle, does it reproduce the problem for you in IE9? I tested using IE11, setting Document mode
to '9', but I don't know how good this is at backwards emulating the older browsers. Certainly when I scrolled up
and down the active <li> was shown correctly. As well as clicking on it the page jumped to the right anchor.
Aaron May 3 at 9:50
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no
registration required.
Bootstrap Scrollspy IE 9 Issue
sign up log in tour help careers 2.0

javascript - Bootstrap Scrollspy IE 9 Issue - Stack Overflow http://stackoverflow.com/questions/23441366/bootstrap-scrollspy-ie-9-issue
1 of 2 6/9/2014 3:52 PM
Know someone who can answer? Share a link to this question via email, Google+,
Twitter, or Facebook.
Browse other questions tagged javascript css internet-explorer twitter-bootstrap or
ask your own question.
javascript - Bootstrap Scrollspy IE 9 Issue - Stack Overflow http://stackoverflow.com/questions/23441366/bootstrap-scrollspy-ie-9-issue
2 of 2 6/9/2014 3:52 PM

You might also like