Sharepoint Web 部件并覆盖 css 样式
看看这张图片
替代文本 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
为什么不使用 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?
我主要致力于定制 sharepoint UI。 所以我确信您应该查看的类如下:
您应该像这样删除背景图像属性中的图像引用:
这将删除顶部的深灰色线。
快乐定制!
I work intensively on customising sharepoint UI. So i know for sure that the class you should be looking at is the following:
You should remove the image reference in the background-image property like so:
That will remove the dark greyish line on top.
Happy Customising!!!
Chrome 似乎表明 iframe (id
Filterlframe1
) 才是罪魁祸首:澄清:Sharepoint 列表视图使用 iframe 作为顶部的菜单栏 - 这是渲染边框的地方。
Chrome seems to suggest that it's the iframe (id
Filterlframe1
) that's the culprit:Clarification: the Sharepoint list view uses an iframe for the menu bar at the top - that's where the border is being rendered.
好吧,在 IE8 开发工具栏中玩过之后,我想出了:
CSS props:
Well, after playing in the IE8 dev toolbar, I came up with:
CSS props:
查看 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.
我查看了每个回复,但没有一个是成功的。 关键是“#4E7CB7”行的颜色。 然后我搜索了服务器上的根 CSS 文件,并在 CORE.css 的第 2683 行将其更改
为
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
to