我想在API返回結果時進行引導加載映像。我怎樣才能使背景透明?如何在引導加載程序時使背景透明
下面是HTML標記和CSS:
<div class="loader" ng-hide="data.length > 0"></div>
<style>
.loader {
border: 16px solid #D4D4D4;
border-radius: 50%;
border-top: 16px solid #3498db;
width: 120px;
height: 120px;
position: fixed;
top:100px;
bottom: 0;
left: 0;
right: 0;
margin: auto;
z-index: 99999999;
-webkit-animation: spin 2s linear infinite;
animation: spin 2s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
</style>
將'background-color:transparent'添加到'.loader'中 –
我的意思是所有頁面的背景顏色..用加載程序 – Fredj