引用系统Loading图标
<apex:actionstatus id="status">
<apex:facet name="start" >
<div class="waitingSearchDiv" id="el_loading" style=" background-color: #fbfbfb ;
height: 100%;opacity :0.65;width:100%;" >
<div class="waitingHolder" style="position: fixed;top : 30%; right:50%;width: 91px;" >
<img class="waitingImage" src="/img/loading32.gif" title="Please Wait..." />
</div>
</div>
</apex:facet>
</apex:actionstatus>
<apex:pageBlockButtons >
<apex:commandButton value="保存" action="{!save}" status="status" rerender="form1" />
<apex:commandButton value="取消" immediate="true" status="status" action="{!cancel}" />
</apex:pageBlockButtons>
在按钮上加上status="status" rerender="form1" (from1是id)两个属性就可以了