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

 

http://www.cnblogs.com/JessZhou

posted @ 2012-10-31 17:17  Areas  阅读(208)  评论(0编辑  收藏  举报