jscrollpane 设置箭头样式
我正在以下页面上实现 jScrollpane jQuery 脚本(来自 http://jscrollpane.kelvinluck.com )开发,并希望对其进行样式设置以适合页面的设计:
由于某种原因,滚动区域没有跨越 div 的全文。不知道可能是什么问题? (通过为 @font-face 加载字体制作后备字体并在 css 中进行字体大小调整来解决)
我在底部使用两个箭头,但我想调整完整箭头区域的大小,使其更加宽松
另外,我想让禁用箭头为灰色,并已准备好图像,但我不知道如何选择 .jspDisabled 类,以便它显示适当的图像,但两者的图像不同。
页面: http://baksagaspar.com/francesco-work/
有什么帮助吗?
I'm implementing the jScroll pane jQuery script (from http://jscrollpane.kelvinluck.com ) on a page under development, and want to style it to suit the design of the page:
for some reason the scroll area doesn't span to the full text of the div. don't know what could be the problem?
(solved with making a fallback font for the @font-face loaded font, and making the font-size-adjust in css)I'm using both arrows on bottom, but I would like to resize the complete arrow area so that it's more loose
also, I would like to make the disabled arrows grey, and have prepared the images, but I don't know how to make the selection to .jspDisabled class so it shows the appropriate images and not the same image for both.
The page:
http://baksagaspar.com/francesco-work/
Any help please?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
据我所知,jScrollPane 使用 CSS 作为箭头图像。
只需替换类样式上的
background-image
属性即可:.jspArrowDown
和.jspArrowUp
。对于禁用,请确保
.jspArrowUp .jspDisabled
的backgroud-image
设置为重要。例子:
From what I remember, jScrollPane uses CSS for the arrow images.
Just replace the
background-image
property on the style for the classes:.jspArrowDown
and.jspArrowUp
.For disabled, make sure the
backgroud-image
for.jspArrowUp .jspDisabled
is set to important.Example:
我认为您将滚动设置在错误的 div 上。
I think you are setting the scroll on the wrong div.