2
我似乎无法让这个微调工作。任何帮助表示赞赏。我希望这个在页面加载时显示。微调不工作
.spinner {
position: fixed;
top: 50%;
left: 50%;
margin-left: -50px; /* half width of the spinner gif */
margin-top: -50px; /* half height of the spinner gif */
text-align:center;
z-index:1234;
overflow: auto;
width: 100px; /* width of the spinner gif */
height: 102px /* height of the spinner gif +2px to fix IE8 iss */
}
<div id="spinner" class="spinner" style="display:none;">
<img id="img-spinner" src="https://www.cmfgroup.com/images/list-graphics/loader.gif? Status=Temp&sfvrsn=2" alt="Loading"/>
</div>
<script type="text/javascript">
$(document).ready(function(){
$("#spinner").bind("ajaxSend", function() {
$(this).show();
}).bind("ajaxStop", function() {
$(this).hide();
}).bind("ajaxError", function() {
$(this).hide();
});
});
</script>
不显示任何与页面加载
你的标签是错误的,换一个。请编辑您的标签以包含“html”“css”和“javascript”,您将得到更好的回应。这不是一个“Java”问题。 – 2014-10-20 14:32:39
哦! @ msrd0只是编辑了我认为的标签! – 2014-10-20 14:33:02
你可以尝试把样式标签放在外部样式表中吗? – 2014-10-20 14:33:48