当我尝试通过 VS Code 中的 Live 服务器打开时,我不明白其余的块在哪里消失了
有这样的标记
<form action="#" method="post">
<div class="validation" asp-validation-summary="ModelOnly"></div>
<label asp-for="Name">name</label>
<span asp-validation-for="Name"></span>
<input asp-for="Name" type="text" placeholder="Enter Name">
<label asp-for="Price">Price</label>
<span asp-validation-for="Price"></span>
<input asp-for="Price" placeholder="Enter Price">
<label asp-for="BrandName">Brand</label>
<span asp-validation-for="BrandName"></span>
<input asp-for="BrandName" placeholder="Enter Brand">
<label asp-for="Size">Size of product</label>
<div class="select-custom">
<select asp-for="Size" >
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>
<svg>
<use xlink:href="#select-arrow-down"></use>
</svg>
</div>
<label asp-for="Color">Color of product</label>
<div class="select-custom">
<select asp-for="Size" asp-items="@Html.GetEnumSelectList<ColorProduct>()">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>
<svg>
<use xlink:href="#select-arrow-down"></use>
</svg>
</div>
<label asp-for="Description">Description</label>
<span asp-validation-for="Description"></span>
<input asp-for="Description" type="text" placeholder="Enter Description">
<div class="button-box">
<button type="submit" style="float: right;"><span>Create Product</span></button>
</div>
<svg class="sprites">
<symbol id="select-arrow-down" viewbox="0 0 10 6">
<polyline points="1 1 5 5 9 1"></polyline>
</symbol>
</svg>
</form>
由于产品的选择颜色中的 svg,它之后的剩余块没有显示,它们甚至不在 DOM 中。
我不明白问题是什么,当我通过文件打开它时,所有的块都到位了。我附上了截图,但没有足够的声誉