CSS样式增加loading图标

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
<style type="text/css">
.loading {
	width: 160px;
	height: 56px;
	position: absolute;
	left:50%;
	top:50%;
	line-height: 56px;
	color: #fff;
	padding-left: 60px;
	font-size: 15px;
	background: #000 url(../quotation/content/images/loading.gif) no-repeat
		10px 50%;
	opacity: 0.7;
	z-index: 9999;
	-moz-border-radius: 20px;
	-webkit-border-radius: 20px;
	border-radius: 20px;
	filter: progid:DXImageTransform.Microsoft.Alpha(opacity=70);
}
</style>
</head>

<body>
	<div id="loading" class="loading">Loading pages...</div>
</body>
</html>

图标

效果图

CSS样式增加loading图标_第1张图片

你可能感兴趣的:(css)