jQuery中的containment属性 [英] containment property in jquery

查看:80
本文介绍了jQuery中的containment属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,我想对我的班级进行围堵,但不允许班级名称
我想知道containment属性是否允许设置类名

hey i want to give containment accoriding tom my class but it does not allow class name
i want to know that does containment property allows classname to be set

$(".cls_draggable").draggable({
              revert: 'invalid',
              cursor: 'move',
              snap: "true",
              containment:".droppable"
          });




是否适用于所有名称为"droppable"的类?




does it apply to all classes having name "droppable"

推荐答案

(" ).draggable({ 恢复:' 无效', 光标:' 移动', snap:" , 包含:" });
(".cls_draggable").draggable({ revert: 'invalid', cursor: 'move', snap: "true", containment:".droppable" });




是否适用于所有名称为"droppable"的类




does it apply to all classes having name "droppable"


这篇关于jQuery中的containment属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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