jQuery 可排序 +可删除的 z-index 问题
我有一个问题,我的可排序对象的 z 索引不在我的可放置对象之上。
- 如果您访问 http://clareshilland.unknowndomain.co.uk/。
- 按
Ctrl + L
打开登录屏幕。 - 输入用户名
clare
和密码shilland
。 - 然后,如果您单击
管理图库
,它将加载到管理栏中。 - 将出现一个弹出缩略图视图,其中包含该图库中的所有照片。
问题是,当您将“宝丽来照片”从网格拖动到删除区域时,它们位于删除区域下方。
我尝试将删除区域放在与网格相同的 div 内,但这没有什么区别,我只是不知道此时该怎么做,所以任何帮助都将是巨大的帮助!
I am having a probelm with the z-index of my sortable object not being above my droppable.
- If you visit http://clareshilland.unknowndomain.co.uk/.
- Press
Ctrl + L
to bring up the login screen. - Enter the username
clare
and the passwordshilland
. - It will then load in the admin bar and if you click
manage gallery
. - A pop down thumbnail view will appear with all the photos from that gallery.
The issue is that when you drag the 'polaroids' from the grid to the delete area they are under the delete area.
I tried putting the delete area inside the same div as the grid but it makes no difference, I just don't know what to do at this point so any help would be a massive help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
为您的
.sortable()
尝试以下选项:Try the following options for your
.sortable()
:实际上,问题似乎是 z-index 和溢出的组合(我将其删除)。如果您将图库视图 CSS 更改为此,它就可以工作
您可能希望有其他滚动到右侧而不是向下滚动的图库图像。
Actually, it appears the problem is a combination of z-index and the overflow (I removed it). If you change your gallery view CSS to this, it works
You might want to have additional gallery images that scroll off to the right instead of down.
我不认为这是一个 z-index 问题,我认为问题是当你将 li 移动到删除区域时,它会被切断,因为它位于其父 ol 之外。我会尝试在鼠标悬停时立即将 li 移动到删除区域内的 ol (使用 droppable.over 事件),这可能会使其正确显示。
I dont think its a z-index problem, i think the problem is that when you move the li over the delete area, its being cut off because its outside its parent ol. I would try moving the li to an ol thats inside the delete area as soon as you mouseover (use the
droppable.over
event,) that might allow it to display properly.