css - ASP.NET Core Angular 中的 Identity Server 4 - 如何共享 css?
问题描述
我已经搭建了 Identity Server 页面。我需要以与应用程序其余部分相同的方式设置它们的样式。然而,它似乎有自己的“根”。而且我找不到分享主题css的方法。
主题 css 来自devextreme
并且只要我能看到它部署在dist/styles.460fbddcdafd4abc24c1.css
文件中。
整个应用程序都可以看到它,我不需要使用link
它,因为它会自动构建到dist\index.html - <link rel="stylesheet" href="styles.460fbddcdafd4abc24c1.css"></head>
IS4 root 似乎指向~/Identity
路径。所以它找不到主题 css 类。
到目前为止唯一的解决方案是 - 将主题 css 文件复制到wwwroot
并添加到_Layout.cshtml
:
<link rel="stylesheet" href="~/../dx.dark.css">
还有另一种正确的方法吗?
解决方案
推荐阅读
- php - 如何检查表单是否已在本地主机上提交
- javascript - 应用最小化/关闭时更新 Firestore 值
- node.js - Node.js bcrypt 比较返回 false
- vba - 运行时错误 '15' - 无法打开指定的文件 (Application.followhyperlink) -
- git - 如何从远程 git 存储库中的特定提交(通过哈希)获取单个文件?
- macos - Gradle:缺少shell命令的输出
- elasticsearch - 为什么 minimum_should_match 不返回多个匹配项?
- c# - C# Generics Extension Method Issues
- python - Django在完成时保存长时间运行的进程
- excel - Excel VBA插入行加上复制最后一行公式