English 中文(简体)
防止内容编辑中的图像从被拖到另一块
原标题:Prevent image in contenteditable div from being dragged to another div
  • 时间:2012-01-11 16:41:25
  •  标签:
  • html
  • css

我有许多内容不容置疑的影子。 我的一项业务规则是,用户可在四舍五入内挖掘图像,并在四舍五入内检索这些图像的位置。

然而,必须保持每块影像的确切数目,因此,我可以让它们删除图像或将其拖到另一块。 我只想问一下现在四分五裂之间的拖.。

这里有一页 j,我有两页 d和图像:。 http://jsfiddle.net/r6Qe4/

What I m looking to do is prevent the image inside the first div from being dragged to the second div, but still allow it to me moved in the first div.

希望是有意义的。

任何想法?

问题回答

你们应该能够聆听拖拉/空闲事件,并检查被拖走的东西,但这似乎预示着时间。

See:

http://codebits.glennjones.net/editing/events-contenteditable.htm




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签