引用:C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI\Microsoft.Web.CommandUI.dll

后台代码:

SPRibbon ribbon = SPRibbon.GetCurrent(this.Page);
if (ribbon != null)
{
ribbon.Visible = false;

}

样式隐藏DIV高度

.ms-belltown-authenticated #s4-ribbonrow, .ms-belltown-authenticated .ms-belltown-anonShow{
display:none;
}

相关文章:

  • 2021-10-27
  • 2021-08-07
  • 2021-11-01
  • 2022-12-23
  • 2022-12-23
  • 2021-08-13
猜你喜欢
  • 2021-10-27
  • 2021-09-18
  • 2022-12-23
  • 2022-12-23
  • 2022-01-14
相关资源
相似解决方案