jscrollpane div 后面的内容
我有一个相当大的 div,上面有一个 jscrollpane。 div 有一个内边距,因此滚动条显示在距 div 200px 处。 这意味着 div 和滚动条之间有空间。到目前为止一切都很好。 现在这整件事是一个非常大的按钮。 但我无法按下 div 和滚动条之间的按钮,因为它仍然是 Jscrollpane div 的一部分。 div 周围有令人恼火的蓝色边框。 任何人都知道我如何确保可以在该空间中单击大按钮。是否有可能摆脱活跃状态的蓝色边框?
预先非常感谢!
I got a pretty huge div that has a jscrollpane on it.
The div has a padding to it so the scrollbar is is displayed like 200px away from the div.
This means there is space between the div and the scrollbar. So good so far.
Now this whole thing is one a really big button.
But I can't press the button in the space between the div and the scrollbar because it's stil a part of the Jscrollpane div. The div just get's that irritating blue border around it.
Anybody know how I can make sure the big button can be clicked in that space. And if it's possible to get rid of the active state blue border?
Thanks a lot in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
那么滚动窗格是一个按钮,您希望它能够在用户单击滚动窗格上的任意位置时执行按钮的操作?
如何检测有人“按下按钮”?整个事情都包含在链接中吗?您使用 javascript 来分配点击处理程序吗?
尝试向应用 jScrollPane 的元素添加背景颜色,以便您可以清楚地看到它的边界。如果您在这些范围内按下按钮,该按钮会起作用吗?这些边界和滚动条本身之间是否有间隙?如果您可以提供显示页面设置的 URL(最好是 http://www.jsfiddle.net ) 那么我也许可以提供更多帮助...
So the scrollpane is a button and you want it so that if the user clicks anywhere on the scrollpane then the button's action is performed?
How do you detect when somebody "presses the button"? Is the whole thing wrapped in a link? Do you use javascript to assign a click handler?
Try adding a background colour to the element which you apply jScrollPane to so that you can see it's bounds clearly. Does the button work if you press within those bounds? Is there a gap between those bounds and the scroll bar itself? If you can provide a URL showing the page setup (preferably an example put together on http://www.jsfiddle.net ) then I may be able to help a little more...
为按钮提供一个更好的 z-index
我认为这可能是 z-index 问题,
Give a better z-index for the button
I think it might be z-index problem,