自定义水平滚动条不会到达轨道末尾

发布于 2025-01-05 03:19:11 字数 1704 浏览 0 评论 0原文

我为 jscrollpane 创建了一个自定义滚动条,它似乎工作正常,直到我滚动到末尾并且它在末尾之前停止,就像卡住了一样。我希望它能读到最后,这样人们就知道没有更多的内容可以滚动了。我更改的唯一 css 样式是 jspHorizo​​ntalBar、jspTrack、jspDrag。

/*
* CSS Styles that are needed by jScrollPane for it to operate correctly.
*
* Include this stylesheet in your site or copy and paste the styles below into your stylesheet - jScrollPane
* may not operate correctly without them.
*/

.jspContainer
{
overflow: hidden;
position: relative;
}

.jspPane
{
position: absolute;
}

.jspVerticalBar
{
position: absolute;
top: 0;
right: 0;
width: 16px;
height: 100%;
background: red;
}

.jspHorizontalBar
{
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 25px;
background-color: #fff;
}

.jspVerticalBar *,
.jspHorizontalBar *
{
margin: 0;
padding: 0;
}

.jspCap
{
display: none;
}

.jspHorizontalBar .jspCap
{
float: left;
}

.jspTrack
{
background: #fff;
position: relative;
background-image:url(../images/track.gif);
background-repeat: repeat-x;
}


.jspDrag
{
position: relative;
top: 10px;
left: 0;
cursor: pointer;
background-image:url(../images/move_me.jpg);
background-repeat:no-repeat;
border: 0px;
}

.jspHorizontalBar .jspTrack,
.jspHorizontalBar .jspDrag
{
float: left;
height: 100%;
}

.jspArrow
{
background: #50506d;
text-indent: -20000px;
display: block;
cursor: pointer;
}

.jspArrow.jspDisabled
{
cursor: default;
background: #80808d;
}

.jspVerticalBar .jspArrow
{
height: 16px;
}

.jspHorizontalBar .jspArrow
{
width: 16px;
float: left;
height: 100%;
}

.jspVerticalBar .jspArrow:focus
{
outline: none;
}

.jspCorner
{
background: #eeeef4;
float: left;
height: 100%;
}

/* Yuk! CSS Hack for IE6 3 pixel bug :( */
* html .jspCorner
{
margin: 0 -3px 0 0;
}

I have created a custom scroll bar for the jscrollpane which appears to be working fine until I scroll to the end and it stops just before the end like its stuck. I want it to go to the end so people know that there is no more to scroll. The only css styles that i have changed are jspHorizontalBar, jspTrack, jspDrag.

/*
* CSS Styles that are needed by jScrollPane for it to operate correctly.
*
* Include this stylesheet in your site or copy and paste the styles below into your stylesheet - jScrollPane
* may not operate correctly without them.
*/

.jspContainer
{
overflow: hidden;
position: relative;
}

.jspPane
{
position: absolute;
}

.jspVerticalBar
{
position: absolute;
top: 0;
right: 0;
width: 16px;
height: 100%;
background: red;
}

.jspHorizontalBar
{
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 25px;
background-color: #fff;
}

.jspVerticalBar *,
.jspHorizontalBar *
{
margin: 0;
padding: 0;
}

.jspCap
{
display: none;
}

.jspHorizontalBar .jspCap
{
float: left;
}

.jspTrack
{
background: #fff;
position: relative;
background-image:url(../images/track.gif);
background-repeat: repeat-x;
}


.jspDrag
{
position: relative;
top: 10px;
left: 0;
cursor: pointer;
background-image:url(../images/move_me.jpg);
background-repeat:no-repeat;
border: 0px;
}

.jspHorizontalBar .jspTrack,
.jspHorizontalBar .jspDrag
{
float: left;
height: 100%;
}

.jspArrow
{
background: #50506d;
text-indent: -20000px;
display: block;
cursor: pointer;
}

.jspArrow.jspDisabled
{
cursor: default;
background: #80808d;
}

.jspVerticalBar .jspArrow
{
height: 16px;
}

.jspHorizontalBar .jspArrow
{
width: 16px;
float: left;
height: 100%;
}

.jspVerticalBar .jspArrow:focus
{
outline: none;
}

.jspCorner
{
background: #eeeef4;
float: left;
height: 100%;
}

/* Yuk! CSS Hack for IE6 3 pixel bug :( */
* html .jspCorner
{
margin: 0 -3px 0 0;
}

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

§普罗旺斯的薰衣草 2025-01-12 03:19:11

轻松修复。

你有->

<div class="jspDrag" style="width: 166px; left: 1097px;">

该对象的宽度达到页面的末尾。更改宽度,对象将被允许到达页面的末尾。

Easy fix.

You have ->

<div class="jspDrag" style="width: 166px; left: 1097px;">

The width of this object is hitting the end of the page. Change the width and the object will be allowed to go to the end of the page.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文