Last active
October 13, 2015 08:41
-
-
Save maru0014/9f4c8d54a16f441c45ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style type="text/css"> | |
.loadingWrap { | |
width: 100%;/*100%で全画面表示*/ | |
height: 100%;/*100%で全画面表示*/ | |
background: #fff;/*背景色*/ | |
position: fixed; | |
top: 0;/*画面上部からの位置*/ | |
left: 0;/*画面左部からの位置*/ | |
z-index: 9999;/*レイヤー(この他にpositionを使用していない場合は不要)*/ | |
} | |
.loadingWrap img { | |
position: absolute; | |
top: 50%;/*中央表示*/ | |
left: 50%;/*中央表示*/ | |
margin: -69px 0 0 -69px;/*画像位置調整(-画像高さの半分 0 0 -画像幅の半分)*/ | |
width: auto;/*画像サイズをナチュラルに(レスポンシブデザインでない場合は不要)*/ | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment