我可以将简单的CSS添加到SP页面以删除某些内容吗? [英] Can I add simple CSS to a SP page to remove something?

查看:81
本文介绍了我可以将简单的CSS添加到SP页面以删除某些内容吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我向SP的同事提出了这个问题,他们说工作需要很长时间。 我亲自前往SP页面并使用Google Inspect,选择了我想要"隐藏"的区域。在页面上:



display:none



...而且效果很好。 但无论如何,我们的"新闻"页面显示页面顶部的发布日期。我们只想在页面上添加一点CSS并使用display:none代码使其暂时消失。 
我在SP中总是遇到的最大问题是页面上各种元素的命名标记。



< p style ="">所以我想我在这里问的是 - 这可以吗?我应该寻找什么命名标签来专门识别页面中添加CSS的部分?感谢任何帮助。

解决方案

是的,这可以做到。如果它仅用于单页,则使用内容编辑器webpart,如下所示:


< style>


<在此处复制并粘贴规则>


< / style>


另一种选择是通过母版页合并。


希望这有助于


I asked this question to our colleagues in SP and they said it'd take too long to make work.  I personally went to a SP page and with Google Inspect, selected the area I wanted to "hide" on the page with:

display: none

...and it worked beautifully.  But anyway, our "news" pages display the publication date at the very top of the page. We just want to add a little bit of CSS to the page with the display:none code to make it disappear temporarily.  The biggest problem I've always found with SP though is the naming tags of various elements on the page.

So I guess what I'm asking here is - can this be done? What naming tag should I look for to specifically ID the section of the page to add the CSS to? Any help is appreciated thanks.

解决方案

Yes, this can be done. If it's only for single page then use Content Editor webpart as below:

<style>

<copy and paste the rule here>

</style>

Another option is to incorporate through master page.

Hope this helps


这篇关于我可以将简单的CSS添加到SP页面以删除某些内容吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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