Home > Mobile >  Styling issue in Razor pages
Styling issue in Razor pages

Time:12-02

Looking at the generated Assembly.styles.css there are IDs or whatever it is called.

enter image description here

But these IDs are not appearing in the generated HTML.

enter image description here

Which results that the styling does not become applied.

enter image description here

CodePudding user response:

CSS isolation is a build step, so it does not work when Razor runtime compilation is enabled.

Make sure that you haven't enabled runtime compilation of your Razor files.

Related GitHub issue

  • Related