Sharepoint Web 部件并覆盖 css 样式

发布于 2024-07-17 10:16:41 字数 614 浏览 6 评论 0原文

看看这张图片

替代文本 http: //www.abbeylegal.com/downloads/2009-04-01/web%20part%20top%20line.jpg

有谁知道红色突出显示的线条/边框使用什么css样式? 我试图在我的自定义样式表中覆盖它,但我没有任何运气,到目前为止我已经尝试覆盖这些不同的样式...

.ms-viewheadertr
.ms-vh2
.ms-vb
.ms-vb2
.ms-unselectedtitle
.ms-summarystandardbody

它改变了显示但不改变边框,这足以让你发疯!

更新:

.ms-WPHeader确实是CSS类之一,但是如果将边框样式设置为none,仍然会出现一行; 只是薄了一点。 我可以使用 .ms-viewheadertr 完全删除标题,但似乎无法删除这一行。

Have a look at this picture

alt text http://www.abbeylegal.com/downloads/2009-04-01/web%20part%20top%20line.jpg

Does anyone know what css style is used for the line/border highlighted in red? I'm trying to over ride it in my custom style sheet but I’m not having any luck, so far I’ve tried overiding these different styles...

.ms-viewheadertr
.ms-vh2
.ms-vb
.ms-vb2
.ms-unselectedtitle
.ms-summarystandardbody

which is changing the display but not the border, it's enough to make you go mad!

Update:

.ms-WPHeader is indeed one of the css classes, however if you set the border-style to none there is still a line that appears; just a little thinner. I can use .ms-viewheadertr to completely remove the header but just can't seem remove this one line.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

究竟谁懂我的在乎 2024-07-24 10:16:41

为什么不使用 Firefox & 浏览器? firebug 插件来确定要覆盖哪些类?

您是否使用 !importance 来覆盖 css 类?

Why don't you use firefox & the firebug addon to work out which classes to override?

Are you using !importance to override the css classes?

尾戒 2024-07-24 10:16:41

我主要致力于定制 sharepoint UI。 所以我确信您应该查看的类如下:

*.ms-vh,.ms-vh2,.ms-vh-icon,.ms-vh2-nofilter,.ms-vh2-nofilter-icon,.ms-viewheadertr .ms-vh-group,.ms-vh2-nograd,.ms-vh3-nograd,.ms-vh2-nograd-icon,.ms-ph,.ms-pickerresultheadertr{
background-image:url("/_layouts/images/viewheadergrad.gif");
background-repeat:repeat-x;
padding-top:1px;
padding-bottom:0px;
background-color:#f2f2f2;
}*

您应该像这样删除背景图像属性中的图像引用:

*background-image:url("");*

这将删除顶部的深灰色线。

快乐定制!

I work intensively on customising sharepoint UI. So i know for sure that the class you should be looking at is the following:

*.ms-vh,.ms-vh2,.ms-vh-icon,.ms-vh2-nofilter,.ms-vh2-nofilter-icon,.ms-viewheadertr .ms-vh-group,.ms-vh2-nograd,.ms-vh3-nograd,.ms-vh2-nograd-icon,.ms-ph,.ms-pickerresultheadertr{
background-image:url("/_layouts/images/viewheadergrad.gif");
background-repeat:repeat-x;
padding-top:1px;
padding-bottom:0px;
background-color:#f2f2f2;
}*

You should remove the image reference in the background-image property like so:

*background-image:url("");*

That will remove the dark greyish line on top.

Happy Customising!!!

困倦 2024-07-24 10:16:41

Chrome 似乎表明 iframe (id Filterlframe1) 才是罪魁祸首:

border-bottom-style: inset;
border-bottom-width: 2px; 

澄清:Sharepoint 列表视图使用 iframe 作为顶部的菜单栏 - 这是渲染边框的地方。

Chrome seems to suggest that it's the iframe (id Filterlframe1) that's the culprit:

border-bottom-style: inset;
border-bottom-width: 2px; 

Clarification: the Sharepoint list view uses an iframe for the menu bar at the top - that's where the border is being rendered.

念﹏祤嫣 2024-07-24 10:16:41

好吧,在 IE8 开发工具栏中玩过之后,我想出了:

<tr class="ms-WPHeader">

CSS props:

border-bottom:#4e7cb7 1px solid;
border-collapse:collapse;

Well, after playing in the IE8 dev toolbar, I came up with:

<tr class="ms-WPHeader">

CSS props:

border-bottom:#4e7cb7 1px solid;
border-collapse:collapse;
段念尘 2024-07-24 10:16:41

查看 Heather Solomom 的 SharePoint CSS 参考,网址为 http://www.heathersolomon.com/content/sp07cssreference。嗯。

浏览 http://www.heathersolomon.com/content/sp07cssreference 中的 Web 部件特定部分.htm#WebParts,看起来这可能是 ms-WPBorder?

希望这可以帮助。

Check out Heather Solomom's SharePoint CSS reference at http://www.heathersolomon.com/content/sp07cssreference.htm.

Browsing through the webpart specific section at http://www.heathersolomon.com/content/sp07cssreference.htm#WebParts, it looks like this might be ms-WPBorder perhaps?

Hope this helps.

转身以后 2024-07-24 10:16:41

我查看了每个回复,但没有一个是成功的。 关键是“#4E7CB7”行的颜色。 然后我搜索了服务器上的根 CSS 文件,并在 CORE.css 的第 2683 行将其更改

.ms-WPHeader TD {
    border-bottom:1px solid #4e7cb7;
    border-collapse:collapse;
}

.ms-WPHeader TD {
    border-bottom:0px solid #4e7cb7;
    border-collapse:collapse;
}

I reviewed each of the responses and none of them was successful. The key is the color of the line "#4E7CB7". I then searched the root CSS files on the server and at line 2683 of the CORE.css I changed the

.ms-WPHeader TD {
    border-bottom:1px solid #4e7cb7;
    border-collapse:collapse;
}

to

.ms-WPHeader TD {
    border-bottom:0px solid #4e7cb7;
    border-collapse:collapse;
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文