隐藏顶部功能区而不隐藏右侧角落的用户信息 [英] Hide the top ribbon without hiding the user information on right hand corner

查看:61
本文介绍了隐藏顶部功能区而不隐藏右侧角落的用户信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个sharePoint网站,我们需要添加一个用户信息控件(比如出现在sharepoint网站最右边的那个)。有没有办法实现它?

We have a sharePoint site where we need to add a user information control(like the one appearing in the right most corners of the sharepoint site). Is there any way to achieve it?

如果没有,那么我们可以隐藏功能区而不是默认的用户信息控件吗?

If not then can we hide the ribbon but not the default user information control?

推荐答案

使用下面的CSS隐藏顶部功能区栏,但在右上角显示用户信息控件:

Use following CSS below to hide top ribbon bar but display the user information control in right corner:

<style type="text/css">
#suiteBarLeft
{
     background-color:white;
}
.ms-cui-topBar2
{
  display:none;
}
#globalNavBox
{
    background-color:white;
}
</style>

谢谢

最好的问候


这篇关于隐藏顶部功能区而不隐藏右侧角落的用户信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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