【问题标题】:In SharePoint 2007, how can I change the background color of the Web Part Zone?在 SharePoint 2007 中,如何更改 Web 部件区域的背景颜色?
【发布时间】:2015-09-28 21:29:28
【问题描述】:

我知道我可以通过在内容编辑器 Web 部件的源中包含 CSS 来更改 Web 部件的背景颜色:

<style type="text/css">
#MSOZoneCell_WebPartWPQ3{
background-color:"#ddecff";
}
</style>

但我想更改整个 Web 部件区的背景颜色。白色很无聊...有谁知道怎么做?

【问题讨论】:

  • 对 SharePoint 2007 不熟悉,但不能只针对 DOM 正文或零件部分区域的 ID 吗?
  • 可能。虽然我不知道它叫什么。我已经浏览了页面源代码,但是有 700 多行,很难挑出来。我希望有人知道。
  • 你能把整个 HTML 页面转储到 jsFiddle 上吗?

标签: html css sharepoint-2007 cewp


【解决方案1】:
<style type="text/css">
.ms-webpart-chrome-title
{
background-color: Gray;
}

.ms-webpart-titleText.ms-webpart-titleText, .ms-webpart-titleText > a 
{
color: White!important;
}
</style>​​​​​

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-09-01
    • 2012-03-23
    • 1970-01-01
    • 2020-09-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多