Closed. This question is off-topic。它当前不接受答案。
                            
                        
                    
                
                            
                                
                
                        
                            
                        
                    
                        
                            想改善这个问题吗? Update the question,所以它是on-topic,用于堆栈溢出。
                        
                        5年前关闭。
                                                                                            
                
        
我一直在尝试在整个屏幕上使用透明灯箱键入背景显示ajax加载程序/旋转程序图像。任何想法,请。

最佳答案

检查这些:

http://codepen.io/collection/HtAne

取一个.loaders-将其放入#loaderContainer,然后:

#loaderContainer{
     position:absolute; // or fixed
     background-color:rgba(0,0,0,0.6); //to your preference
     width:100%; height:100%;
     top:0; left:0; bottom:0; right:0; // not always necessary
     text-align:center; vertical-align:middle;
//you'll have to tweak it to get it centered, but it shouldn't be too hard

}

09-25 15:30