【发布时间】:2020-12-24 17:43:29
【问题描述】:
我很熟悉不关闭标签的危险,但我的理解是<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>
}
导致错误RZ1026 Encountered end tag "br" with no matching start tag. Are your start/end tags properly balanced?
Visual Studio 2019 v16.7.2,dotnet core v3.1.401
非常感谢任何帮助。
【问题讨论】: