完全隐藏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>

posted @ 2012-10-31 17:08  Jess Zhou  阅读(170)  评论(0编辑  收藏  举报