Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是网页新手,刚刚开始学习它。在创建新的 Razor 网站后,当我单击添加新项目时,我会看到可以添加的项目的多个选项。那些是:
我不知道最后 3 个用于什么以及它们之间的区别。
内容页面是使用布局页面的一种。它包含一个代码块和一个div. 没有head或body元素。
div
head
body
Empty Page是一个 Razor 文件 (.cshtml/.vbhtml),其中只有一个代码块(无 HTML)
网页是一个 Razor 文件,其中没有代码块,只有 HTML。