水平スクロールに問題があります。クロムで検査すると、エラーは表示されません。問題が見つからないので、どこに問題があるのか教えていただけますか?
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js" type="text/javascript"></script>
<script>
$('#right-button').click(function() {
$('#content').animate({
marginRight: marginRight -"200px"
}, "fast");
});
$('#left-button').click(function() {
$('#content').animate({
marginLeft: marginLeft +"200px"
}, "fast");
});
</script>
<style type="text/css">
#browser {
float: left;
width: 300px;
overflow: hidden;
white-space: nowrap;
}
</style>
</head>
<body>
<div id="browser">
<a href="#" id="left-button">BACK</a>
<div id="content">
This is the content of the text which should be scrolled.
</div>
<a href="#" id="right-button">NEXT</a>
</div>
</body>