Html Visual Studio Blazor:遇到结束标记;br";没有匹配的开始标记
我熟悉不关闭标记的危险,但我的理解是Html Visual Studio Blazor:遇到结束标记;br";没有匹配的开始标记,html,.net-core,blazor,Html,.net Core,Blazor,我熟悉不关闭标记的危险,但我的理解是应该自动关闭 @if (students != null) // Insert form { <input placeholder="First Name" @bind="@firstName" /></br /> <input placeholder="Last Name" @bind="@lastName" /></br
应该自动关闭
@if (students != null) // Insert form
{
<input placeholder="First Name" @bind="@firstName" /></br />
<input placeholder="Last Name" @bind="@lastName" /></br />
<input placeholder="School" @bind="@school" /></br />
<button @onclick="@Insert" class="btn btn-warning">Insert</button>
}
@if(students!=null)//插入表单
{
插入
}
导致错误RZ1026遇到结束标记“br”,但没有匹配的开始标记。开始/结束标记是否正确平衡?
Visual Studio 2019 v16.7.2,dotnet core v3.1.401
非常感谢您的帮助。
-两条斜线。看起来VisualStudio试图提供帮助。可能值得为那些想知道为什么它是错误的人提供正确形式的标签