## 방법 1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | jQuery.ajax({ type : "POST" . . , beforeSend: function() { jQuery('.loding_layer').show(); } , success : function(response, status, request) { jQuery('.loding_layer').hide(); } }); < div id = "wrap_reverse" class = "loding_layer" style = "z-index:998; top:0px; left:0px; width:100%; height:100%; position:fixed; display:none; background-color: #000; opacity:0.4;" ></ div > < div id = "loding" class = "loding_layer" style = "display:; z-index:999; position:none; top:45%; left:50%;" > < center >< img src = "/ajax-loader.gif" ></ center > < h2 >기다려주세요.</ h2 > </ div > |
## 방법 2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | jQuery('.loding_layer').show(); jQuery('.loding_layer').hide(); < style type = "text/css" > .loding_layer { width: 100%; height: 100%; position: fixed; top: -4px; left: 0; z-index: 99999; background: rgba(0, 0, 0, 0.5); display: none; } .loding_layer p { position: relative; top: 50%; margin: -75px auto 0 auto; width: 200px; height: 50px; -webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px; background: #fff; box-sizing: border-box; padding: 0 30px; text-align: center; font-size: 16px; color: #555; } .loding_layer p strong { display: block; padding-top: 15px; font-style: italic; } </ style > <!--loding_layer--> < section class = "loding_layer" > < p > < strong >< img src = "/ajax-loader.gif" width = "25" > 처리중..</ strong > </ p > </ section > |
'프로그래밍 > css' 카테고리의 다른 글
[CSS] nth-child (n번째 부터 n번째 까지 css적용) (0) | 2018.04.05 |
---|---|
CSS3 :nth-child(n) 선택자 (같은종류의 태그로 구성되어 있을 때 사용) (0) | 2018.04.05 |
IE8에서도 되는 라운딩 (0) | 2018.03.02 |