无法在Jcrop中拖动选择,什么会破坏它? [英] Cannot drag selection in Jcrop, what could break it?

查看:80
本文介绍了无法在Jcrop中拖动选择,什么会破坏它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很茫然.我正在使用JQuery 1.4.2和JCrop 0.98.其他所有工作都很好,但是一旦创建,我就无法移动选择.当我将鼠标悬停在所选内容上并单击时,什么也没有发生.

I'm at a loss. I'm using JQuery 1.4.2 and JCrop 0.98. Everything else works fine, but I cannot move a selection once created. When I mouse over the selection and click, nothing happens.

我拥有JQuery库,JCrop库和JCrop css文件.这是一个非常干净的页面,没有太多其他内容.我不知道我是否意外地重写了自己的javascript和css中的某些内容,从而破坏了JCrop,两者都有很多.但是Firebug并没有解决任何问题.

I have the JQuery library, the JCrop library and the JCrop css file all included. It's a pretty clean page without much else on it. I don't know if I'm accidentally overriding something in my own javascript and css in such a way that it breaks JCrop, there's quite a bit of both. But Firebugs isn't turning anything up.

尽管这些教程确实使用了其他版本的jquery,但它们在我的浏览器和服务器上都可以正常工作.但是,当我将其最初使用的版本替换为我使用的版本时,它们仍然可以正常工作.因此,这必须与我的javascript或css有关.

The tutorials work fine with my browse and on my server, though they do use a different version of jquery. However, when I replace the version they originally used with the version I use they continue to work just fine. So it has to be something to do with my javascript or css.

我在这里完全不知所措,我正在寻找可以想到的所有问题,但我什至不知道在哪里寻找.以前有没有其他人遇到过这个问题?问题出在哪里,您是如何解决的?我应该在哪里查找错误或错误的覆盖?

I'm at a completely loss here, I'm looking at everything I can think of for where an issue might be, but I don't even know where to look. Has anyone else ever run into this issue before? What was the problem and how did you solve it? Where should I look for an error or bad override?

推荐答案

问题已解决:

* { margin: 0; padding: 0; position: relative; }

position: relative;超越了JCrop的绝对定位需求.移除后,它的效果非常好.我还需要其他东西,但是我只是在更精确的基础上应用了它.

The position: relative; was overriding JCrop's need for absolute positioning. Once removed, it worked beautifully. I'd needed it for other stuff, but I just applied it on a more precise basis.

虽然让我永远找不到它,却不得不将我的javascript和css都放入了他们的演示文件之一,并检查了每个文件是否存在冲突.屁股痛.

Took me forever to find it though, had to take both my javascript and css into one of their demo files and check each piece for conflict. Pain in the butt.

如果遇到类似的问题,请检查是否存在类似的定位冲突.

If you experience a similar problem, check to see if you have a similar conflict of positioning.

这篇关于无法在Jcrop中拖动选择,什么会破坏它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆