[英]Shared CSS file blazor
The strengths of the new .NET5 CSS isolation feature (placing a css file "below" your razor file), is that the css is NOT shared between pages/components making them easier to develop and contained/bundled to the specific component.
但是,如果您想添加一些可通过您的应用程序使用的共享 css,您可以通过编辑站点范围的 css 文件来“以旧方式”进行操作。 使用 Blazor 模板,即wwwroot/css/site.css
用于服务器端或wwwroot/css/app.css
用于客户端。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.