码迷,mamicode.com
首页 > Web开发 > 详细

css 实现页面加载中等待效果

时间:2015-09-09 17:17:22      阅读:123      评论:0      收藏:0      [点我收藏+]

标签:

技术分享

 

<!DOCTYPE html>
<html>
<head>
<title>css实现页面加载中,请稍候效果</title>

<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">

</head>
<body>
    <div id="loadPage"
        style="display:none;position:absolute; left:-1px; top:1px; width:100%; height:100%;moz-opacity: 0.3;filter:Alpha(opacity=50); opacity: 0.3; background-color:#555; z-index:1000;">
        <img src="./images/06.gif" style="position: fixed;left: 48%;top:35%;"></img>
    </div>
</body>
</html>


默认是隐藏的,可通过js控制div的显示和隐藏,背景颜色和图片可自行调节。

 

css 实现页面加载中等待效果

标签:

原文地址:http://www.cnblogs.com/zhourunbest/p/4795149.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!