爲了增加Kobi's answer,你可以使用委託的控制功能進行部署。
廣場_controltemplates
下一個用戶的控制,如:
<%@ Control Language="C#" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %>
<SharePoint:CssRegistration name="/_layouts/custom/app.css" runat="server"/>
寫委託控制功能(這裏是elements.xml中):
<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Control ControlSrc="~/_ControlTemplates/CustomBranding.ascx"
Id="AdditionalPageHead" Sequence="1" />
</Elements>
包括自定義CSS _layouts/custom/app.css
。
+1:解決問題的更簡潔的方法。 –
關於臃腫的DOM的好處 - 我試過了,效果不一致無縫。損害是通過繼承的品牌解決方案完成的,所以我認爲我們超越了CSS--我希望避免重新訪問修改後的application.master。 :)感謝你們兩個 - 願意選擇兩者作爲答案。 – Mayo