从我的理解,它不是存储在样式库,所以在这种情况下,它将被存储在14hive中:
不覆盖sharepoint corev4.css,而是用另一种方式重新编写它,如果你想用相同的id或class来覆盖它是好的!只是使用!每个项目后重要,例如:
.S4-td
{
width:100% !important;
}
重要的是忽略了任何其他的CSS!有后=“corev4.css”也会这样做;)但如果你想明确地说你只想要那种风格,那么我会把上面的方法!
在自定义CSS使用本上面使用的母版:
<!-- link to our custom css -->
<SharePoint:CssRegistration ID="CssRegistration1" name="/_layouts/customcss/css/style.css" After="corev4.css" runat="server"/>
或
<!-- link to our custom css -->
<SharePoint:CssRegistration ID="CssRegistration1" name="/Style%20Library/style.css" After="corev4.css" runat="server"/>
仅供参考,如果你想上面做的,但想知道哪些类和id的是V4比它位于这里:
C:\ Program Files \ Common Files \ Microsoft Shared \ Web服务器 扩展\ 14 \ TEMPLATE \ LAYOUTS \ 1033 \ STYLES \ corev4.css
你的情况同样适用上面!
<SharePoint:CssRegistration ID="CssRegistration1" Name="/_styles/S1.css" After="corev4.css" runat="server"/>
应该做的伎俩;)
https://sharepoint.stackexchange.com/questions/71591/where-is-corev4-css-located-in-sharepoint-designer-2013
“你可以检查您的样式库有一个由你的母版页中引用的CSS” - 我在哪里可以找到呢? – Etienne