在母版页中的这一句的<span class="ms-siteactionsmenu" id="siteactiontd">的下面添加:<SharePoint:SPSecurityTrimmedControl runat="server" Permissions="AddAndCustomizePages">
这一行:</span>
<asp:ContentPlaceHolder
id="PlaceHolderGlobalNavigation"
runat="server">的前面添加</SharePoint:SPSecurityTrimmedControl>
隐藏整个网站操作
<div id="s4-ribbonrow" class="s4-pr s4-ribbonrowhidetitle" style="display:none">
<!--隐藏网站操作 开始-->
<Sharepoint:SPSecurityTrimmedControl
ID="SPSecurityTrimmedControl2" runat="server"
PermissionsString="AddAndCustomizePages">
<script
type="text/javascript">
document.getElementById("s4-ribbonrow").style.display = "block";
</script>
</Sharepoint:SPSecurityTrimmedControl>
<!--隐藏网站操作
结束-->