본문 바로가기

[Css]

[css] div 안에 div 이미지 가운데 정렬

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
<style> 
#loading {
    width: 100%; 
    height: 100%; 
    position: fixed; 
    display: table; 
    opacity: 0.7; 
    background-color: #fff; 
    z-index: 99; 
    }  
#loding_inner { 
    display: table-cell; 
    text-align: center; 
    vertical-align: middle;} 
#loading-image { display: inline-block; 
    z-index: 100; 
    width: 50%; 
    }
 
</style> 
<script type="text/javascript"> 
    $(document).ready(function(){ 
        $('#loading').show();  
    }); 
</script>
 
 
<div id="loading">
    <div id="loding_inner">
        <img id="loading-image" th:src="@{/resources/js/loading.png}" alt="Loading..." />
    </div>
</div> 
 
 
 
cs

'[Css]' 카테고리의 다른 글

[css] css작성법  (0) 2021.01.22
[css] 모든 버튼 비활성화 & 활성화  (0) 2020.11.02