yTo*_*ide 4 razor asp.net-core blazor
我想使用我的文件中的wwwroot/css/.
自定义CSS,BlazorControllers/Components/.
但在执行时没有加载任何内容。在客户端或 lib 项目设置中有什么要指定的吗?
我的库项目是BlazorControllers
,我在客户端项目中使用库的组件
在您的 Index.html(或 _Host.cshtml)文件中的 site.css 行下方,添加
<link href="_content/<YourLibrary>/styles.css" rel="stylesheet" />
Run Code Online (Sandbox Code Playgroud)
在哪里 <YourLibrary>
似乎是在你的情况BlazorControllers。
当我正确阅读那张照片时,您(也)需要
<link href="_content/BlazorControllers/css/MyComponents.css" rel="stylesheet" />
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
2708 次 |
最近记录: |