0
我努力避免這種共享點覆蓋我的引導類,但不幸的是沒有成功,我嘗試了許多在網上找到的解決方案,也在Sharepoint StackExchange中嘗試過,但沒有什麼好處。如何避免Sharepoint覆蓋我的CSS類?
我的目標是在母版頁中添加一個用引導程序製作的自定義導航欄。我的母版是基本上只是奧斯陸母版的副本,我嘗試在此附上一些頁面的代碼:
<head runat="server">
<meta http-equiv="X-UA-Compatible" content="IE=10" />
<meta name="GENERATOR" content="Microsoft SharePoint" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta http-equiv="Expires" content="0" />
<SharePoint:SPPinnedSiteTile runat="server" TileUrl="/_layouts/15/images/SharePointMetroAppTile.png" TileColor="#0072C6" />
<SharePoint:RobotsMetaTag runat="server" />
<SharePoint:PageTitle runat="server">
<asp:ContentPlaceHolder id="PlaceHolderPageTitle" runat="server" />
</SharePoint:PageTitle>
<SharePoint:StartScript runat="server" />
<SharePoint:CssLink runat="server" Version="15" />
<SharePoint:CacheManifestLink runat="server" />
<SharePoint:ScriptLink language="javascript" name="core.js" OnDemand="true" runat="server" Localizable="false" />
<SharePoint:ScriptLink language="javascript" name="menu.js" OnDemand="true" runat="server" Localizable="false" />
<SharePoint:ScriptLink language="javascript" name="callout.js" OnDemand="true" runat="server" Localizable="false" />
<SharePoint:ScriptLink language="javascript" name="sharing.js" OnDemand="true" runat="server" Localizable="false" />
<SharePoint:ScriptLink language="javascript" name="suitelinks.js" OnDemand="true" runat="server" Localizable="false" />
<SharePoint:CustomJSUrl runat="server" />
<SharePoint:SoapDiscoveryLink runat="server" />
<SharePoint:AjaxDelta id="DeltaPlaceHolderAdditionalPageHead" Container="false" runat="server">
<asp:ContentPlaceHolder id="PlaceHolderAdditionalPageHead" runat="server" />
<SharePoint:DelegateControl runat="server" ControlId="AdditionalPageHead" AllowMultipleControls="true" />
</SharePoint:AjaxDelta>
<SharePoint:SPShortcutIcon runat="server" IconUrl="/_layouts/15/images/favicon.ico?rev=23" />
<![CDATA[ [if IE 9] ]]> <style type="text/css">//<![CDATA[
.ms-core-animation-transparent
{
opacity:0;
}
.ms-isBot .ms-core-animation-transparent
{
opacity:1;
}
//]]></style>
<![CDATA[ [endif] ]]> <!--[if lte IE 8]>
<style type="text/css">//<![CDATA[
.ms-core-animation-transparent,
.ms-core-animation-transparent img
{
-ms-filter:"alpha(opacity=0)";
}
.ms-isBot .ms-core-animation-transparent,
.ms-isBot .ms-core-animation-transparent img
{
-ms-filter:"";
}
//]]></style>
<![endif]-->
<script type="text/javascript">//<![CDATA[
var g_pageLoadAnimationParams = { elementSlideIn: "sideNavBox", elementSlideInPhase2: "contentBox" };
//]]></script>
<SharePoint:CssRegistration Name="Themable/corev15.css" runat="server" />
<!-- jQuery -->
<SharePoint:ScriptLink ID="ScriptLink1" Name="~sitecollection/Style Library/jQuery/jquery.js" runat="server" />
<!-- jQuery END -->
<!-- Custom JS References -->
<SharePoint:ScriptLink ID="ScriptLink3" Name="~sitecollection/Style Library/customJs/masterReorderer.js" runat="server" />
<!-- Custom JS References END -->
<!-- CSS & jQuery BOOTSTRAP -->
<SharePoint:ScriptLink ID="ScriptLink2" Name="~sitecollection/Style Library/bootstrap/bootstrap.js" runat="server" />
<SharePoint:CssRegistration Name="<% $SPUrl:~SiteCollection/Style Library/bootstrap/bootstrap.css%>" After="corev15.css" runat="server" />
<SharePoint:CssRegistration Name="<% $SPUrl:~SiteCollection/Style Library/bootstrap/bootstrap-theme.css%>" After="corev15.css" runat="server" />
<!-- CSS BOOTSTRAP & jQuery END -->
當我收到錯了嗎?