Sharepoint Online(Office 365)-在哪里可以找到母版页代码/Javascript/CSS [英] Sharepoint Online (Office 365) - Where can I find master page code/Javascript/CSS

查看:171
本文介绍了Sharepoint Online(Office 365)-在哪里可以找到母版页代码/Javascript/CSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我是SharePoint的新手(在线使用Office 365 SharePoint).我看到许多文章解释了在母版页,javascript或css中进行更改的必要性,例如是否需要更改标题颜色,隐藏一些标题等.

Hi I am new with SharePoint (working with Office 365 SharePoint online). I see many articles explaining make changes in master page, javascript or css if we need any sort of customization, like change heading color, hide some header etc...

但是我无法在SharePoint Online(Office 365)中找到任何类型的代码.如果要隐藏标题或更改网站页面标题的字体和颜色,该如何完成此类任务.

But I am unable to find any sort of code in SharePoint Online (Office 365). How can I achieve such task if I want to hide header or change the font and color for site page title.

有人可以建议我找到可以更改代码的正确路径吗,或者SharePoint Online是否存在不允许访问此类内容的限制?

Can anybody suggest me the right path I can find the code to change, or is there any limitation for SharePoint online that it will not allow access to such things ?

推荐答案

要查找页面的HTML代码,我们可以使用IE或Chrome F12开发人员工具.

To find the HTML code of the pages, we can use IE or Chrome F12 developer tools.

默认情况下,SharePoint使用母版页seattle.master,如果要隐藏标题并更改页面标题的颜色,则可以使用SharePoint Designer 2013在此母版页的标记中添加以下样式.

By default, SharePoint use the master page seattle.master, if you want to hide header and change color of pages title, you can add the following style into tag in this master page using SharePoint designer 2013.

<style type="text/css">
#O365_NavHeader,#suiteBarDelta{
    display:none;
}
#pageTitle,#pageTitle a{
    color:green !important;
}
</style> 

如果您使用SharePoint Online现代网站,我们可以创建一个自定义主题.以下文章供您参考.

If you use SharePoint Online modern site, we can create a custom theme. The article below for your reference.

品牌化SharePoint现代网站

这篇关于Sharepoint Online(Office 365)-在哪里可以找到母版页代码/Javascript/CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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