Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用以下代码为某些用户隐藏功能区:代码:
这工作正常,但是 id 为 s4-ribbonrow 的 div 有一些仍然可见的背景颜色。如何使其对同一组用户不可见?
您可以使用 SharePoint 安全修剪。 示例: SharePoint:SPSecurityTrimmedControl runat="server" Permissions="Your Custom Permission Level"> script> Your custom code> /script> /SharePoint:SPSecurityTrimmedControl> 在该特定控件的母版页中。