0

我需要将一张图片拖到一个 div 中,如果它触及“是”,它会提醒:是,但如果它触及“否”,它会提醒:不!我实际上做不到,你可以看到我在这里有什么,我不知道为什么,但在我的项目中我至少可以拖动 JS 图像而在 jsfiddle 中我不能,所以我基本上需要一个 if 来做警报!

http://jsfiddle.net/vy635/1/

<div id="yes" style="background-color:lightyellow; width:64px; height:64px; border-width:2px; border-style:solid; border-color:black;"> 
    <center>yes</center> 
</div>
<br>
<div id="no" style="background-color:lightyellow; width:64px; height:64px; border-width:2px; border-style:solid; border-color:black;"> 
    <center>no</center> 
</div>

谢谢 !

4

0 回答 0