请提供代码示例,以便在激活该功能时覆盖CSS文件:xyz.css至http://abcd.com/_layouts/15/PQR/styles/xyz.css。 [英] Please provide code example for overwriting the CSS file : xyz.css to http://abcd.com/_layouts/15/PQR/styles/xyz.css when the feature is activated.
问题描述
您好,b
$ b在SharePoint 2016中,我创建了一个具有自定义功能的Sharepoint解决方案,其中包含一个必须覆盖CSS文件的事件接收器:xyz.css激活此功能时,请访问http://abcd.com/_layouts/15/PQR/styles/xyz.css。
请提供代码示例激活该功能时,将CSS文件:xyz.css覆盖到http://abcd.com/_layouts/15/PQR/styles/xyz.css。
提前致谢。
Hi,
In SharePoint 2016, I have created a Sharepoint solution having a custom feature with a event receiver which has to overwrite a CSS file : xyz.css to http://abcd.com/_layouts/15/PQR/styles/xyz.css when the feature is activated.
Please provide code example for overwriting the CSS file : xyz.css to http://abcd.com/_layouts/15/PQR/styles/xyz.css when the feature is activated.
Thanks in advance.
推荐答案
您好
您使用Visual Studio开发解决方案吗?
Do you use Visual Studio to develop the solution?
您可以添加映射的Layouts文件夹并将文件放入其中。
You can add a mapped Layouts folder and put your file in it.
但它无法控制按功能。
这篇关于请提供代码示例,以便在激活该功能时覆盖CSS文件:xyz.css至http://abcd.com/_layouts/15/PQR/styles/xyz.css。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!