從我的理解,它不是存儲在樣式庫,所以在這種情況下,它將被存儲在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