HTML pagescroll错误

时间:2015-03-19 18:20:36

标签: jquery html jquery-pagescroller

我的页面滚动不起作用,任何人都可以为下面的代码建议解决方案,..

<div id="ascrail2001" class="nicescroll-rails" style="width: 6px; z-index: 1000; cursor: default; position: fixed; top: 0px; height: 100%; right: 0px; opacity: 0; background: rgb(64, 64, 64);">
    <div style="position: relative; top: 0px; float: right; width: 6px; height: 32px; border-radius: 10px; background-color: rgb(232, 64, 63); background-clip: padding-box;">
</div>
</div>

感谢...

2 个答案:

答案 0 :(得分:2)

删除position: fixed;

overflow:scroll;添加到内框。

香蕉也说过,你的div应该有内容(文字,图片......)。

答案 1 :(得分:0)

我面临的问题,因为我在代码的开头添加了js文件。现在我改变它并解决了我的问题。愚蠢的错误。谢谢你们@banana,@ im1dermike和@lisztomania