完全隐藏Master Page 页面编辑菜单
1. 在Master Page Head 增加下面的Style
<style type="text/css">
#ctl00_PageStateActionButton{
visibility:hidden;}
</style>
2. 增加SPSecurityTrimmedControl
<SharePoint:SPRibbonPeripheralContent
runat="server"
Location="TabRowLeft"
CssClass="ms-siteactionscontainer s4-notdlg">
<SharePoint:SPSecurityTrimmedControl runat='server' PermissionsString='FullMask'>
<style type="text/css">
#ctl00_PageStateActionButton{
visibility:visible;
}
}
</style>