Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/86.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery HTML页面滚动错误_Jquery_Html_Jquery Pagescroller - Fatal编程技术网

Jquery HTML页面滚动错误

Jquery HTML页面滚动错误,jquery,html,jquery-pagescroller,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="posi

我的页面滚动不工作,有人能为下面的代码建议解决方案吗

<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>


谢谢…

删除
位置:固定

添加
溢出:滚动到内部框


香蕉也说过,你的div中应该有内容(文本、图像…)。

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

“不工作”。你是项目经理吗?提示:为了能够滚动你的页面,它必须实际包含一些内容。@im1dermike我是一名项目经理beginner@Fyodoro:您提供的信息越多,我们就越容易提供帮助。我只是使用上面的代码与nicescroll JS一起滚动页面。为什么要向下投票?它不会与“位置:固定”一起工作,即使在内部有文本/内容。。。另一个解决方案:内部div可以有“overflow:scroll”下一票,因为这不是答案,而是一条评论。感谢编辑香蕉,以及代码的撇号提示。欢迎使用。这不是撇号,而是严肃的口音:)