在文档库顶部创建一个栏 [英] Create a bar across the top of document library

查看:77
本文介绍了在文档库顶部创建一个栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我正在尝试在sharepoint中做某事,想知道如何以及是否有可能

当我在文档库或任何其他Webpart中时,我想在显示以下内容的地方创建一个栏:new,upload,sync等

请参阅我的所附图片以更好地了解主意.

我在想,也许最简单的选择是css中的背景颜色(就像我在快速启动导航中所做的那样)

但是我该怎么做?

任何帮助将不胜感激

谢谢

安德里亚(Andrea)


解决方案

您好Andreamancino,

您可以 使用 F12开发人员工具来检查表单中的元素.然后,通过脚本编辑器Web部件或内容编辑器Web部件将脚本添加到页面.

例如,我们可以使用以下脚本来更改工具栏的背景颜色.

< style>

.ms-listview-qcbContainer {

背景颜色:黄色;

}

</style> 


有关如何将CSS和JavaScript添加到SharePoint页面的信息.本文适用于SharePoint 2010,但仍具有有关SharePoint 2016的良好信息.

最好的问候,

Linda Zhang


Hello there, 
I am trying to do something in sharepoint and wanted to know how and if it is even possible

When I am in the document library or any other webpart, I would like to create a bar across where it says: new,upload,sync etc 

Please see my attached picture to have a better idea. 

I was thinking maybe the easiest option is a background color in css ( like I did in the quick launch navigation ) 

but how do I do it ?

Any help would be highly appreciated 

Thanks 

Andrea 


解决方案

Hi Andreamancino,

You can use F12 developer tools to check the elements in the form. Then, add the script to the page through a Script Editor web part or a Content Editor web part.

For example, we can use the following script to changing the background color for the toolbar.

<style>

.ms-listview-qcbContainer{

background-color:yellow;

}

</style>


Information about how to add CSS and JavaScript to the SharePoint page. The article is for SharePoint 2010, but it still has good information for SharePoint 2016.

http://techtrainingnotes.blogspot.sg/2012/05/adding-javascript-and-css-to-sharepoint.html

Best Regards,

Linda Zhang


这篇关于在文档库顶部创建一个栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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