Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我想在使用拖放时使用 jQuery UI 可拖动来选择包含多个区域。我已经使用containment:["#area1","#area2","#area3"],也使用名称区域制作了单个类并应用于所有 div 但仍然无法正常工作,甚至尝试过containment: '#area1, #area2, #area3'但仍然无法正常工作。它只取第一个容器。请建议
containment:["#area1","#area2","#area3"]
containment: '#area1, #area2, #area3'
您可以使用 ui 包含选项,如下所示:
containment:'selector1, selector2,selector3...'