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)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

how to remove this error quot;Response must contain an array at quot; . quot;.quot; while making dropdown(如何删除此错误quot;响应必须在quot;处包含数组。创建下拉菜单时(Q;))
Why is it necessary to use `document.createElementNS` when adding `svg` tags to an HTML document via JS?(为什么在通过JS为一个HTML文档添加`svg`标签时,需要使用`Document.createElementNS`?)
wkhtmltopdf print-media-type uses @media print ONLY and ignores the rest(Wkhtmltopdf print-media-type仅使用@media print,而忽略其余内容)
price depend on selection of radio input(价格取决于无线电输入的选择)
calculate price depend on selection without button(根据没有按钮的选择计算价格)
What should I consider before minifying HTML?(在缩小HTML之前,我应该考虑什么?)