MVC的模板创建后,会默认在所有页面上嵌套模板: @{ Layout = 模板画面; } 如果要使视图不使用布局或模板页,需要在页面上把Layout赋值为空,代码如下: @{ Layout = null; }