引入js:cvi_busy_lib.js (下载地址:http://download.csdn.net/detail/xlb744868186/8388465)
js代码:
$.ajax({ beforeSend:function(){ var xval=getBusyOverlay('viewport',{color:'gray', opacity:0.75, text:'viewport: loading...', style:'text-shadow: 0 0 3px black;font-weight:bold;font-size:16px;color:white'},{color:'#ff0', size:256, type:'o'}); if(xval) { xval.settext("正在下单中,请稍后......"); } } });
css代码:
<style type="text/css" media="all"> @media screen, projection { .wrapper { padding: 0; } } </style>
body代码:
<div class="wrapper">内容</div>
时间: 2024-10-17 13:43:39