質問編集履歴

1

css追加

2018/11/29 03:04

投稿

sakura-shi
sakura-shi

スコア93

test CHANGED
File without changes
test CHANGED
@@ -63,3 +63,99 @@
63
63
 
64
64
 
65
65
  ```
66
+
67
+
68
+
69
+ #試したこと
70
+
71
+
72
+
73
+ ```css
74
+
75
+ .is-hide{
76
+
77
+ display:none;
78
+
79
+ }
80
+
81
+ .loading{
82
+
83
+ position:fixed;
84
+
85
+ top:0;
86
+
87
+ right:0;
88
+
89
+ bottom:0;
90
+
91
+ left:0;
92
+
93
+ background:#f2f2f2;
94
+
95
+ }
96
+
97
+ .loading::before{
98
+
99
+ content:"";
100
+
101
+ display:block;
102
+
103
+ position:fixed;
104
+
105
+ left:50%;
106
+
107
+ top:50%;
108
+
109
+ width:50px;
110
+
111
+ height:50px;
112
+
113
+ border-radius:5px;
114
+
115
+ margin-top:-15px;
116
+
117
+ margin-left:-15px;
118
+
119
+ background:white;
120
+
121
+ }
122
+
123
+ .loading::after{
124
+
125
+ content:"";
126
+
127
+ display:block;
128
+
129
+ position:fixed;
130
+
131
+ left:50%;
132
+
133
+ top:50%;
134
+
135
+ width:32px;
136
+
137
+ height:32px;
138
+
139
+ border-radius:20px;
140
+
141
+ margin-top:-10px;
142
+
143
+ margin-left:-10px;
144
+
145
+ border:4px solid #60ABB9;
146
+
147
+ border-right:4px solid white;
148
+
149
+ animation: rotate 1s infinite linear;
150
+
151
+ }
152
+
153
+ ```
154
+
155
+
156
+
157
+ これだと
158
+
159
+ 画面全体がローディングアイコンになってしまう
160
+
161
+ HTMLは表示させ、divの部分にのみアイコンを出力したい