World Wide Web/jquery

제이쿼리 팝업창 가운데로 위치 시키기

인천매력쟁이 2013. 6. 21. 16:24
1
2
3
jQuery(".팝업").css("left", (jQuery('body').width()/2- (팝업의 width/2))
 
jQuery(".팝업").css("top", (jQuery(window).height()/2- (팝업의 height/2+ jQuery(document).scrollTop());
cs


로 간단하게 띄울 수 있다.