Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要根据应用于站点的主题将 CSS 应用于 Sharepoint 站点 (WSS3.0)。CSS 将保存在“文档库”的根站点。如何以编程方式在页面上应用 CSS?
谢谢!
放入页面布局或母版页。例如
<SharePointWebControls:CssRegistration ID="CssRegistrationMyCSS" name="<% $SPUrl:~sitecollection/Style Library/~language/Core Styles/myCSS.css %>" runat="server"/>
以编程方式更改它需要您在页面加载时修改控件。但不确定它的效果如何。