弹框的拖动

This commit is contained in:
cxt 2016-02-03 13:32:05 +08:00
parent 89599d8679
commit 8b5896ae1c
1 changed files with 2 additions and 1 deletions

View File

@ -4,3 +4,4 @@ $('#ajax-modal').siblings().remove();
var mTop = ($(window).height()-646)/2;
var mLeft = ($(window).width()-1054)/2;
$('#ajax-modal').parent().css("border","3px solid #269ac9").css("top","mTop").css("left","mLeft").css("position","fixed");
$('#ajax-modal').css("margin","15px");