我正在尝试nanoScroller
在我的项目中使用。我正在阅读官方网站上的文档。这是我想出的代码(包含与该页面中提到的生产站点nano.js
相同的代码。但是,它不起作用,文本只是溢出容器。谁能告诉我我做错了什么? 这是我的代码:
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">
</script>
<script src="nano.js">
</script>
<link rel="stylesheet" href="https://raw.github.com/jamesflorentino/nanoScrollerJS/master/bin/css/nanoscroller.css">
<style>
.nano { width: 500px; height: 200px;}
.nano .content { padding: 10px; }
.nano .pane { background: black; }
.nano .slider { background: #111; }
</style>
<script>
$(document).ready(function(){
$(".nano").nanoScroller();
});
</script>
</head>
<body>
<div id="about" class="nano">
<div class="content">
Thanks to SublimeVideo Horizon, the SublimeVideo Modular Player can now easily be enriched with future features and add-ons. Below, we would like to share with you some possible upcoming features and add-ons. We would be delighted if you let us know about any other add-on you may need.Thanks to SublimeVideo Horizon, the SublimeVideo Modular Player can now easily be enriched with future features and add-ons. Below, we would like to share with you some possible upcoming features and add-ons. We would be delighted if you let us know about any other add-on you may need.Thanks to SublimeVideo Horizon, the SublimeVideo Modular Player can now easily be enriched with future features and add-ons. Below, we would like to share with you some possible upcoming features and add-ons. We would be delighted if you let us know about any other add-on you may need.Thanks to SublimeVideo Horizon, the SublimeVideo Modular Player can now easily be enriched with future features and add-ons. Below, we would like to share with you some possible upcoming features and add-ons. We would be delighted if you let us know about any other add-on you may need.Thanks to SublimeVideo Horizon, t
</div>
</div>
</body>
</html>