jScrollPane 主题与 CSS
我现在想为我糟糕的英语道歉,我希望你能理解我想要的:
我最近在我的网站 malosane.fr/sqf/ 上使用了插件 jquery 'jScrollPane'。一切都很好,但我似乎无法做出我想要的唯一的小改变。 其实思路很简单,只是我的css脚本水平很差。
刚才,我有类似的东西:http://malossane.fr/usb-file-723
我想要类似的东西:我想要的
事实上,我希望 .jspDrag 比宽度应为 5px 的 .jspVerticalBar 更大。但是,如果我为垂直条设置 5px 的宽度,则 .jspDrag 宽度也变为 5px,尽管我希望他保持在 16px。
有人能帮助我吗? 非常感谢, 蒂姆
I want to apologize now for my bad english, i hope you will understand what i want:
I recently used the plugin jquery 'jScrollPane' on my website malossane.fr/sqf/. Everything is ok, but i appeared to not be able to make the only little change i wanted.
In fact , it is very simple in the idea, but my css scripting level is very bad.
Just now, i have something like that :http://malossane.fr/usb-file-723
And i want something like that :What i want
In fact, i want the .jspDrag to be larger than the .jspVerticalBar that should have a width of 5px. But if i put a width of 5px for the vertical bar, the .jspDrag width become also of 5px although i want him to stay at 16px.
Is someone able to help me?
Thanx a lot,
Tim
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有几种可能的解决方案:
您可以在
.jspTrack 上使用背景图像
,这是您需要的宽度并居中,例如<前><代码>.jspTrack
{
背景:#fff url(/path/to/image.png) 重复-y 5px 0;
}
这样,即使
.jspTrack
是.jspDrag
的宽度,它的背景也会使其看起来不那么宽。您可以尝试在
.jspDrag
上使用负边距将其拉到.jspTrack
之外,例如<前><代码>.jspVerticalBar .jspTrack
{
宽度:5px;
背景:#c4c4c4;
}
.jspVerticalBar .jspDrag
{
边距:0 -5px;
宽度:15 像素;
背景:#363636
}
也许您可以使用
left
而不是负边距。这两种解决方案都未经测试,但它们应该给您一个良好的开始......
There are a couple of possible solutions:
You could use a background image on the
.jspTrack
which is the width you require and centered e.g.This way even through the
.jspTrack
is the width of the.jspDrag
it's background makes it look less wide.You could try using negative margins on the
.jspDrag
to pull it outside the.jspTrack
e.g.Possibly you could use
left
instead of the negative margin.Both of these solutions are untested but they should give you a good start...
我对该插件不太了解,但我可以提供 ua 解决方案
将.jspVerticalBar的颜色设置为透明或与背景颜色相同
并在 .jspVerticalbar 上放置另一个垂直条(假的……),使其看起来像您想要的那样
I don't know much about that plugin but i can give u a solution
set the color of .jspVerticalBar to transparent or same color as that of background
and put another vertical bar (fake one . . ) right on the .jspVerticalbar so that it looks as what you want