HTML5拖放 - 没有透明度? [英] HTML5 Drag and Drop - No transparency?

查看:98
本文介绍了HTML5拖放 - 没有透明度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在页面上拖放元素时,元素变为ghosted。

When I drag and drop an element on my page the element becomes "ghosted". Basically it gets some transparency value.

有没有办法让它 opacity:1;

推荐答案

看起来它不能做。拖动的元素被放入具有它自己的容器,低于1,不透明度。这意味着,虽然你可以降低拖动的元素的不透明度,但是你不能得到它高于封装元素的不透明度。

It looks like it can't be done. The dragged element is put into container that has it's own, lower than 1, opacity. This means that while you can lower the opacity of the dragged element you can't get it higher than the opacity of the encapsulating element.

em>可以覆盖此类元素的默认浏览器设置,但由于在拖动过程中没有将任何内容添加到DOM,因此最好是非常棘手。

It might be possible to override default browser settings for such element, but since nothing is added to DOM during the drag it would be very tricky at best.

这篇关于HTML5拖放 - 没有透明度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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