Internet Explorer 9 拖放 (DnD)

Internet Explorer 9 Drag and Drop (DnD)(Internet Explorer 9 拖放 (DnD))
本文介绍了Internet Explorer 9 拖放 (DnD)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

有谁知道为什么以下网站拖放示例(以及许多其他在线教程)在 Internet Explorer 9 中不起作用?Chrome、FireFox 和 Safari 都可以.

Does anyone know why the following web site drag and drop examples (plus many other tutorials online) don't work in Internet Explorer 9? Chrome, FireFox and Safari are all OK.

http://www.html5rocks.com/tutorials/dnd/basics/

我认为 IE9 应该是最符合 HTML5 的浏览器?尤其是 DnD,因为他们从 IE5 开始就一直支持它.我必须在某处更改设置吗?

I thought IE9 was suppose to be the most HTML5 compliant browser? Especially with DnD since they have been supporting it since IE5. Do I have to change a setting somewhere?

我使用 HTML5 和 CSS3 的次数越多……IE9 越缺乏.

The more I play with HTML5 and CSS3...the more IE9 lacks.

谁有任何可以在 IE9 中使用的 DnD 教程的链接?

Does anyone have any links to DnD tutorials that work in IE9?

推荐答案

我在 IE9 中也遇到过同样奇怪的行为,似乎 IE9 不会对 div 进行拖放(HTML 5 样式).如果您将使用 href="#" 更改 A 的 div,您将能够拖放.

Well i have encountered this same weird behaviour in IE9, it appears to be that IE9 wont do a Drag and Drop (HTML 5 style) on div's. if you would change the div for a A with href="#" you will be able to drag and drop.

这不会拖拽:

<div data-value="1" class="loadedmodule-container" draggable="true">drag</div>

这将:

<a href="#" data-value="1" class="loadedmodule-container" draggable="true">drag</a>

希望这对任何人都有帮助

Hope this helps anyone

这篇关于Internet Explorer 9 拖放 (DnD)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

Drag amp; Drop with Protractor by Repeater(拖动amp;通过中继器使用量角器掉落)
Detecting HTML5 Drag And Drop support in javascript(在 javascript 中检测 HTML5 拖放支持)
HTML5 drop event doesn#39;t work unless dragover is handled(除非处理了拖动,否则 HTML5 放置事件不起作用)
How to use jQuery#39;s drop event to upload files dragged from the desktop?(如何使用 jQuery 的 drop 事件上传从桌面拖动的文件?)
HTML5: dragover(), drop(): how get current x,y coordinates?(HTML5: dragover(), drop(): 如何获取当前 x,y 坐标?)
How to make lt;divgt; resizeable?(如何制作lt;divgt;可调整大小?)