1 $(".modal").each(function(){ 2 $(this).draggable({ 3 handle: ".modal-header" // 只能点击头部拖动 4 }); 5 $(this).css("overflow", "hidden"); // 防止出现滚动条,出现的话,你会把滚动条一起拖着走的 6 });
posted on 2019-03-20 09:43 江清澜静 阅读(176) 评论(0) 编辑 收藏 举报