在SharePoint Online中为非管理员用户隐藏Gear图标 [英] Hide the Gear icon for non admin users in SharePoint online

查看:65
本文介绍了在SharePoint Online中为非管理员用户隐藏Gear图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在尝试为非管理员用户隐藏Gear图标(O365_MainLink_Settings).

I am trying to hide the Gear icon(O365_MainLink_Settings) for non admin users.

<!--MS:<SharePoint:SPSecurityTrimmedControl runat="server" AuthenticationRestrictions="AuthenticatedUsersOnly" Permissions="ManageWeb" EmitDiv="true">-->
           <script type="text/javascript">//<![CDATA[
               getElementById("O365_MainLink_Settings").style.display = "block";
            //]]>
			</script>
           <!--ME:</SharePoint:SPSecurityTrimmedControl>-->
		   
		  

但是此图标也对访问者组可见.

But this icon is visible for visitors group also.


推荐答案

请在< head/>中添加以下CSS样式.标签在母版页中.

Please add the following CSS style into the <head/> tag in master page.

<style type="text/css">
#O365_MainLink_Settings{
	display:none;
}
</style>

最好的问候,

丹尼斯


这篇关于在SharePoint Online中为非管理员用户隐藏Gear图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆