【发布时间】:2010-07-21 15:07:22
【问题描述】:
我有一个带有侧滚动条的 jQuery 可拖动容器 div,当我向上和向下滚动时,它不应该是可拖动的。 .infotext 是包含文本的内部 div,包含在 #infobody 中,设置为溢出:自动。 I need a way to negate the draggable function on the div when the scrollbar is selected.这是我的代码:
$(".lsidebar").draggable({"scroll":false});
.lsidebar #infobody{
cursor:default;
position:absolute;
width:100%;
overflow:auto;
margin:23px 0 0 0;
z-index:14;
}
#infobody .infotext{
cursor:default;
position:relative;
width:100%;
z-index:14;
color:#969696;
}
【问题讨论】:
标签: jquery html scrollbar draggable