1

我正在尝试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>
4

1 回答 1

1

row.github.com不是 CDN,因此不允许从其他网站进行远程访问。将 CSS 文件下载到您的服务器并进行更改<link rel="stylesheet" />

于 2013-08-26T15:37:41.003 回答