本文介绍了IE7:CSS& jQuery:向上拖动,拖动项目在顶部,向下拖动:拖动项目在下面。我怎样才能让两者都处于领先地位?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下是我的jsfiddle代码:

Here is my jsfiddle code: http://jsfiddle.net/SMqR9/16/

您会注意到在IE7中,当您向上拖动某个项目时,它会一直显示,直到它被放置。
但是如果你拖下一个项目,它的某个z-index比我们想要拖放项目的东西要低。

You'll notice that in IE7, when you drag an item up, it is visible until it is placed.But if you drag an item down, it somehow has a lower z-index than the things we could want to drag and drop the item into.

任何想法?

推荐答案

不知怎样,所产生的小提琴都不再适用于我的IE9,甚至那些以前都没有的。由于最后发布的修订版(26)适用于Opera,Chrome和FF,以及IE和IE7的Comp-Mode,我必须假设它与我的IE或JSFiddle相关,并且应该正常工作。

Somehow none of the fiddles that were produced work in my IE9 anymore, not even those, that were working before. Since the last posted revision (26) works in Opera, Chrome and FF, as well as Comp-Mode of IE and IE7, i have to assume it is related to either my IE or JSFiddle and should be working correctly.

http://jsfiddle.net/SMqR9/26/

我认为最终有效。

在MouseDown上增加 .closest(' .section')的z-index为5000.
在MouseUp上将其降低到1000.

On MouseDown increasing .closest('.section')'s z-index to 5000.On MouseUp lowering it to 1000.

这些数字是随机选择的,没有必要把它设置得那么高。只需确保将其降低到低于其他z-index值

The numbers are chosen randomly, no need to set it that high. Just make sure to lower it to something below your other z-index values

这篇关于IE7:CSS& jQuery:向上拖动,拖动项目在顶部,向下拖动:拖动项目在下面。我怎样才能让两者都处于领先地位?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-01 21:48