Internet Explorer 9拖放(DnD) [英] Internet Explorer 9 Drag and Drop (DnD)

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

问题描述

有没有人知道为什么以下网站拖放示例(加上许多其他教程在线)在Internet Explorer 9中不起作用? Chrome,FireFox和Safari都可以。



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



我以为IE9被认为是最适合HTML5的浏览器?特别是与DnD,因为自从IE5以来一直支持它。我必须在某处改变一个设置吗?



我用HTML5和CSS3玩的越多,IE9就越少。



有没有人有任何链接到在IE9工作的DnD教程?

解决方案

我遇到了同样的奇怪在IE9中的行为,似乎是IE9不会在div上执行拖放(HTML 5风格)。如果你要用href =#更改A的div,你将可以拖放。



这不会拖动:

 < div data-value =1class =loadedmodule-containerdraggable =true> drag< / div> 

,这将:

 < a href =#data-value =1class =loadedmodule-containerdraggable =true> drag< / a> 

希望这有助于任何人


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/

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?

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

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

解决方案

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.

this won't drag:

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

and this will:

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

Hope this helps anyone

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

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