在母版页顶部添加横幅图像 [英] add-insert a banner image on top of the master page

查看:93
本文介绍了在母版页顶部添加横幅图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在自定义SP 2010网站集[启用了发布功能的团队网站上]创建/添加顶部横幅图像.

i need to create/add a top banner image on my custom SP 2010 site collection[ team site with publishing features enabled] .

 需要什么样的css才能将标语插入到母版页/[标头图像]的顶部.

 what css nees to be put for getting the banner inserted into the top of the master page /[ header image] .

推荐答案

您只需要使用现成的SharePoint类".s4-title"

You just have to make use of the Out of the box SharePoint Class ".s4-title"

.s4-title
{
background-image: url("Your Image URL") #FECF2C no-repeat;
}

您既可以将CSS直接添加到母版页,也可以将其添加到CSS文本文件中,然后将其上传到网站资产中,然后使用< link>标记在母版页中,如下所示:

You can either add the css directly to master page or add it to a css text file and upload it to Site assets and then refer this using <link> tag in the master page as shown below :

参考文献1

参考2

此致

Priyan


这篇关于在母版页顶部添加横幅图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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