How to reference a .css file on a razor view?

后端 未结 6 1472
执念已碎
执念已碎 2020-11-29 15:24

I know how to set .css files on the _Layout.cshtml file, but what about applying a stylesheet on a per-view basis?

My thinking here is that, in _Layout.cshtml, you h

6条回答
  •  感动是毒
    2020-11-29 16:09

    layout works the same as an master page. any css reference that layout has, any child pages will have.

    Scott Gu has an excellent explanation here

提交回复
热议问题