如何在我的 Sharepoint WebPart 中使用自定义 CSS? [英] How to use custom CSS with my Sharepoint WebPart?

查看:13
本文介绍了如何在我的 Sharepoint WebPart 中使用自定义 CSS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

'你好!

我正在为 Sharepoint 开发我的第一个 WebPart,现在我想知道在哪里/如何包含/存储我的 CSS.我应该把我的 .css 文件放在哪里?我应该如何将它们包含在我的 webpart 中?

I'm developing my first WebPart for Sharepoint, and now I'm wondering where/how to include/store my CSS. Where should I put my .css files? How should I include them in my webpart?

推荐答案

您应该使用可以链接或嵌入的 Web 部件资源.这篇文章很好地解释了如何使用它们:

You should use Web Part Resources which can be linked or embedded. This article does a good job of explaining how to use them:

管理 Web 部件资源的最佳实践

这篇关于如何在我的 Sharepoint WebPart 中使用自定义 CSS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆