Css div 悬浮层 居中显示,一个div 在另一个div 上悬浮,并且居中
想做一个数据加载时,等待的效果:如图,我的代码如下!望各位大侠指教.test{width:200px;height:200px;margin:100px;border:1...
想做一个数据加载时,等待的效果:如图,我的代码如下!望各位大侠指教
.test { width: 200px; height: 200px; margin: 100px; border: 10px solid #f00; }
.test-loading-img { background: url(Css/Themes/Default/Images/ajax-loader.gif) no-repeat; /*top: 0px; left: 0px; right: 0px; bottom: 0px;*/ margin: 0px; width: inherit; height: inherit; position: fixed; background-position-x: 50%; background-position-y: 50%; background-color: #000; opacity: 0.6; }
<div id="dd" class="test"> <div>数据内容省略</div>
<div class="test-loading-img"></div>
</div> 展开
.test { width: 200px; height: 200px; margin: 100px; border: 10px solid #f00; }
.test-loading-img { background: url(Css/Themes/Default/Images/ajax-loader.gif) no-repeat; /*top: 0px; left: 0px; right: 0px; bottom: 0px;*/ margin: 0px; width: inherit; height: inherit; position: fixed; background-position-x: 50%; background-position-y: 50%; background-color: #000; opacity: 0.6; }
<div id="dd" class="test"> <div>数据内容省略</div>
<div class="test-loading-img"></div>
</div> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询