将CSS链接到Intranet站点无法正确呈现 [英] Linking CSS to Intranet site not rendering correctly

查看:70
本文介绍了将CSS链接到Intranet站点无法正确呈现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个内部SharePoint Online(SPO)站点。我们还有一个单独的Intranet站点。我们在SPO中托管所有文件,并在必要时从资产或文档库(图像,视频,文档等)链接到它们。但是,当我尝试托管
CSS文件时,我使用HTML& lt; link& gt;从Intranet站点链接到该文件。或者CSS @import,它不能正确呈现页面。但是,当我从BitBucket,Github或外部CDN位置以完全相同的方式链接到CSS文件时,
页面正确呈现。我想知道这是否是一个已知问题,如果是,导致它发生的原因是什么?此外,在SharePoint中启用O365 CDN会解决问题吗?是否允许CSS正确呈现(可能省略任何额外的元数据,当交付时,SPO中的脚本将带来
)?

We have an internal SharePoint Online (SPO) site. We also have an separate intranet site. We host all of our files in SPO and link to them, when necessary, from asset or document libraries (images, videos, documents, etc). However, when I try to host a CSS file and I link to it from the intranet site using HTML <link> or CSS @import, it does not render the page correctly. However, when I link to a CSS file in exactly the same way from BitBucket, Github, or from an external CDN location, the pages render correctly. I am wondering if this is a known issue and if so, what causes it to happen? Also, will enabling O365 CDN within SharePoint fix the problem? Will that allow the CSS to render correctly (perhaps omitting any extra metadata that is coming with the script from SPO when delivered)?

推荐答案

如果当前用户无权访问该站点中的CSS文件,则不会加载。

您可以使用Office 365内容传送网络(CDN)。但是,您仍需要确保用户可以访问存储文件的文件夹或库。
公开资产。每个人都可以匿名访问公开来源的资产。

了解有关
的更多信息
使用Office 365内容交付网络和SharePoint Online

Best 问候,

Linda 张





这篇关于将CSS链接到Intranet站点无法正确呈现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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